From 8b2888af34054d2a7a9731b353ca01d1f86fea54 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 18 Feb 2025 12:42:45 +0100 Subject: [PATCH] ui: fix title bar padding in the library page (#395) --- .../src/app/library/components/LibraryHeader.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/readest-app/src/app/library/components/LibraryHeader.tsx b/apps/readest-app/src/app/library/components/LibraryHeader.tsx index 292630d1..ea3bb4cb 100644 --- a/apps/readest-app/src/app/library/components/LibraryHeader.tsx +++ b/apps/readest-app/src/app/library/components/LibraryHeader.tsx @@ -49,7 +49,7 @@ const LibraryHeader: React.FC = ({ }; }, [onToggleSelectMode]); - const windowButtonVisible = appService?.appPlatform !== 'web' && !isTrafficLightVisible; + const windowButtonVisible = appService?.hasWindowBar && !isTrafficLightVisible; const isInGroupView = !!searchParams?.get('group'); return ( @@ -128,12 +128,14 @@ const LibraryHeader: React.FC = ({ > - + {appService?.hasWindowBar && ( + + )}