From 1662521d40f558d19360a078ad881bc8cbbbeb27 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 17 Jul 2024 17:41:40 +0300 Subject: [PATCH] Fixed: Display tag list when sort by tags on series Posters --- .../Series/Index/Posters/SeriesIndexPoster.tsx | 18 ++++++++++-------- .../Index/Posters/SeriesIndexPosterInfo.css | 8 ++++++++ .../Posters/SeriesIndexPosterInfo.css.d.ts | 2 ++ .../Index/Posters/SeriesIndexPosterInfo.tsx | 15 +++++++++++++++ .../Index/Posters/SeriesIndexPosters.tsx | 5 +++++ 5 files changed, 40 insertions(+), 8 deletions(-) diff --git a/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx b/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx index 474a226d9..a5d5d4978 100644 --- a/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx +++ b/frontend/src/Series/Index/Posters/SeriesIndexPoster.tsx @@ -211,14 +211,6 @@ function SeriesIndexPoster(props: SeriesIndexPosterProps) { ) : null} - {showTags && tags.length ? ( -
-
- -
-
- ) : null} - {nextAiring ? (
) : null} + {showTags && tags.length ? ( +
+
+ +
+
+ ) : null} + {seasons}
; } + if (!showTags && sortKey === 'tags' && tags.length) { + return ( +
+
+ +
+
+ ); + } + if (sortKey === 'path') { return (
diff --git a/frontend/src/Series/Index/Posters/SeriesIndexPosters.tsx b/frontend/src/Series/Index/Posters/SeriesIndexPosters.tsx index 32b238a6c..055685216 100644 --- a/frontend/src/Series/Index/Posters/SeriesIndexPosters.tsx +++ b/frontend/src/Series/Index/Posters/SeriesIndexPosters.tsx @@ -183,6 +183,11 @@ export default function SeriesIndexPosters(props: SeriesIndexPostersProps) { heights.push(19); } break; + case 'tags': + if (!showTags) { + heights.push(21); + } + break; default: // No need to add a height of 0 }