From 47c6d6d0584362082fe9f7aa9e43575bf7370958 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 30 Jul 2025 17:29:31 +0800 Subject: [PATCH] layout: fix cover image width in fit mode in list view (#1714) --- .../src/app/library/components/BookItem.tsx | 7 +- apps/readest-app/src/components/BookCover.tsx | 64 ++++++++++--------- .../readest-app/src/services/webAppService.ts | 1 - 3 files changed, 38 insertions(+), 34 deletions(-) diff --git a/apps/readest-app/src/app/library/components/BookItem.tsx b/apps/readest-app/src/app/library/components/BookItem.tsx index 1d61c0b7..87f17f03 100644 --- a/apps/readest-app/src/app/library/components/BookItem.tsx +++ b/apps/readest-app/src/app/library/components/BookItem.tsx @@ -61,9 +61,10 @@ const BookItem: React.FC = ({ >
diff --git a/apps/readest-app/src/components/BookCover.tsx b/apps/readest-app/src/components/BookCover.tsx index 9cfbe239..8a9eee45 100644 --- a/apps/readest-app/src/components/BookCover.tsx +++ b/apps/readest-app/src/components/BookCover.tsx @@ -63,46 +63,50 @@ const BookCover: React.FC = memo( return (
{coverFit === 'crop' ? ( - {book.title} - ) : ( -
+ <> {book.title} +
+ + ) : ( +
+
+ {book.title} +
+
)} -
+