From 9358a0683978a4cfd3265b61fa8f61b60cf3035d Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sun, 21 Dec 2025 15:52:57 +0800 Subject: [PATCH] compat(layout): grid layout with fit covers on older browsers, closes #2745 (#2756) --- .../src/app/library/components/BookItem.tsx | 10 ++++++++-- .../src/app/library/components/GroupItem.tsx | 4 ++-- .../app/library/components/GroupingModal.tsx | 1 + apps/readest-app/src/components/BookCover.tsx | 17 +++++++++-------- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/apps/readest-app/src/app/library/components/BookItem.tsx b/apps/readest-app/src/app/library/components/BookItem.tsx index 7f65893e..cfb355ca 100644 --- a/apps/readest-app/src/app/library/components/BookItem.tsx +++ b/apps/readest-app/src/app/library/components/BookItem.tsx @@ -61,13 +61,19 @@ const BookItem: React.FC = ({ >
- + {bookSelected && (
)} diff --git a/apps/readest-app/src/app/library/components/GroupItem.tsx b/apps/readest-app/src/app/library/components/GroupItem.tsx index 6644dba5..b8f0c085 100644 --- a/apps/readest-app/src/app/library/components/GroupItem.tsx +++ b/apps/readest-app/src/app/library/components/GroupItem.tsx @@ -99,7 +99,7 @@ const GroupItem: React.FC = ({ mode, group, isSelectMode, groupS
= ({ mode, group, isSelectMode, groupS mode === 'list' && 'flex-shrink-0', )} > - +
))}
diff --git a/apps/readest-app/src/app/library/components/GroupingModal.tsx b/apps/readest-app/src/app/library/components/GroupingModal.tsx index 5e009951..b5dc4e06 100644 --- a/apps/readest-app/src/app/library/components/GroupingModal.tsx +++ b/apps/readest-app/src/app/library/components/GroupingModal.tsx @@ -102,6 +102,7 @@ const GroupingModal: React.FC = ({ setShowInput(true); setIsRenaming(false); setOriginalGroupName(null); + setSelectedGroup(null); }; const handleRenameGroup = () => { diff --git a/apps/readest-app/src/components/BookCover.tsx b/apps/readest-app/src/components/BookCover.tsx index e3628ce1..774d65b3 100644 --- a/apps/readest-app/src/components/BookCover.tsx +++ b/apps/readest-app/src/components/BookCover.tsx @@ -83,13 +83,13 @@ const BookCover: React.FC = memo( /> ) : ( -
-
+
+
{book.title} = memo(