From 95ef4db4c9b1fd3fec55dfdd33482d85cb4a7a11 Mon Sep 17 00:00:00 2001 From: Alex <25013571+alexhb1@users.noreply.github.com> Date: Fri, 8 May 2026 07:47:43 +0100 Subject: [PATCH] fix(ui): fix series page layout and grid (#1192) --- .../book-card/book-card.component.html | 8 +- .../book-card/book-card.component.ts | 3 +- .../series-page/series-page.component.html | 65 +++--- .../series-page/series-page.component.scss | 46 +++- .../series-page/series-page.component.ts | 204 +++++++++++++----- 5 files changed, 225 insertions(+), 101 deletions(-) diff --git a/frontend/src/app/features/book/components/book-browser/book-card/book-card.component.html b/frontend/src/app/features/book/components/book-browser/book-card/book-card.component.html index 2b6392838..94b1423d2 100644 --- a/frontend/src/app/features/book/components/book-browser/book-card/book-card.component.html +++ b/frontend/src/app/features/book/components/book-browser/book-card/book-card.component.html @@ -40,17 +40,17 @@ @if (isSeriesViewActive()) { - } @else { - } @if (!isSeriesViewActive() && hasDigitalFile()) { - - } @@ -279,34 +279,35 @@ {{ t('booksInSeries') }} - @let cardSize = currentCardSize; -
- @for (book of books; track book; let i = $index) { -
- - -
- } - @if (books.length === 0) { -
{{ t('noBooksFound') }}
+
+ @for (book of books; track book.id; let index = $index) { + + }
- } + } @else { +
{{ t('noBooksFound') }}
+ } @@ -398,23 +399,23 @@ - @if (selectedBooks.size > 0) { + @if (selectedBooks().size > 0) { @if (currentUser(); as user) {