From ccbc8f591b7052f5ffbab0a0372793370add61a1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 15 Aug 2024 19:14:22 +0300 Subject: [PATCH] Improve status labels for deleted movies --- .../src/Movie/Index/Overview/MovieIndexOverview.css | 4 ++-- .../Movie/Index/Overview/MovieIndexOverview.css.d.ts | 2 +- .../src/Movie/Index/Overview/MovieIndexOverview.tsx | 5 +++++ frontend/src/Movie/Index/Posters/MovieIndexPoster.css | 4 ++-- .../src/Movie/Index/Posters/MovieIndexPoster.css.d.ts | 2 +- frontend/src/Movie/Index/Posters/MovieIndexPoster.tsx | 4 ++++ frontend/src/Movie/Index/Table/MovieStatusCell.tsx | 3 ++- frontend/src/Movie/Movie.ts | 9 ++++++++- ...MovieStatusDetails.js => getMovieStatusDetails.ts} | 11 ++++++----- src/NzbDrone.Core/Localization/Core/ar.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/bg.json | 6 +++--- src/NzbDrone.Core/Localization/Core/ca.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/cs.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/da.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/de.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/el.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/en.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/es.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/fi.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/fr.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/he.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/hi.json | 6 +++--- src/NzbDrone.Core/Localization/Core/hr.json | 2 +- src/NzbDrone.Core/Localization/Core/hu.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/id.json | 2 +- src/NzbDrone.Core/Localization/Core/is.json | 6 +++--- src/NzbDrone.Core/Localization/Core/it.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/ja.json | 6 +++--- src/NzbDrone.Core/Localization/Core/ko.json | 6 +++--- src/NzbDrone.Core/Localization/Core/nb_NO.json | 2 +- src/NzbDrone.Core/Localization/Core/nl.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/pl.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/pt.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/pt_BR.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/ro.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/ru.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/sk.json | 2 +- src/NzbDrone.Core/Localization/Core/sv.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/th.json | 6 +++--- src/NzbDrone.Core/Localization/Core/tr.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/uk.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/vi.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/zh_CN.json | 8 ++++---- src/NzbDrone.Core/Localization/Core/zh_TW.json | 2 +- 44 files changed, 150 insertions(+), 132 deletions(-) rename frontend/src/Movie/{getMovieStatusDetails.js => getMovieStatusDetails.ts} (65%) diff --git a/frontend/src/Movie/Index/Overview/MovieIndexOverview.css b/frontend/src/Movie/Index/Overview/MovieIndexOverview.css index a2d5e6c2f..0f9390a6c 100644 --- a/frontend/src/Movie/Index/Overview/MovieIndexOverview.css +++ b/frontend/src/Movie/Index/Overview/MovieIndexOverview.css @@ -32,7 +32,7 @@ $hoverScale: 1.05; } } -.ended { +.deleted { position: absolute; top: 0; right: 0; @@ -41,7 +41,7 @@ $hoverScale: 1.05; height: 0; border-width: 0 25px 25px 0; border-style: solid; - border-color: transparent var(--dangerColor) transparent transparent; + border-color: transparent var(--gray) transparent transparent; color: var(--white); } diff --git a/frontend/src/Movie/Index/Overview/MovieIndexOverview.css.d.ts b/frontend/src/Movie/Index/Overview/MovieIndexOverview.css.d.ts index f11f6809b..db968ac90 100644 --- a/frontend/src/Movie/Index/Overview/MovieIndexOverview.css.d.ts +++ b/frontend/src/Movie/Index/Overview/MovieIndexOverview.css.d.ts @@ -3,9 +3,9 @@ interface CssExports { 'actions': string; 'content': string; + 'deleted': string; 'details': string; 'editorSelect': string; - 'ended': string; 'externalLinks': string; 'info': string; 'link': string; diff --git a/frontend/src/Movie/Index/Overview/MovieIndexOverview.tsx b/frontend/src/Movie/Index/Overview/MovieIndexOverview.tsx index a2ac34ad7..af2819677 100644 --- a/frontend/src/Movie/Index/Overview/MovieIndexOverview.tsx +++ b/frontend/src/Movie/Index/Overview/MovieIndexOverview.tsx @@ -142,6 +142,11 @@ function MovieIndexOverview(props: MovieIndexOverviewProps) {
{isSelectMode ? : null} + + {status === 'deleted' ? ( +
+ ) : null} + + {status === 'deleted' ? ( +
+ ) : null} +