From 04ade02a06f3652dc6af723360076c23aa8cf4e7 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Mon, 17 Nov 2025 19:52:05 +0530 Subject: [PATCH] fix(layout): enlarge clickable area for the close button in the reader page (#2459) --- apps/readest-app/src/app/library/page.tsx | 18 +++++++++--------- apps/readest-app/src/hooks/useTheme.ts | 2 +- apps/readest-app/src/styles/globals.css | 10 ++++++++++ 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/apps/readest-app/src/app/library/page.tsx b/apps/readest-app/src/app/library/page.tsx index 42aa377e..e94a5660 100644 --- a/apps/readest-app/src/app/library/page.tsx +++ b/apps/readest-app/src/app/library/page.tsx @@ -637,7 +637,7 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP )} >
+
{(loading || isSyncing) && (
@@ -716,14 +724,6 @@ const LibraryPageContent = ({ searchParams }: { searchParams: ReadonlyURLSearchP paddingLeft: `${insets.left}px`, }} > - { if (!appService?.isMobileApp) return; - const visible = systemUIVisible && !systemUIAlwaysHidden; + const visible = !!(systemUIVisible && !systemUIAlwaysHidden); if (visible) { showSystemUI(); } else { diff --git a/apps/readest-app/src/styles/globals.css b/apps/readest-app/src/styles/globals.css index a7b1c94c..1f76dcf4 100644 --- a/apps/readest-app/src/styles/globals.css +++ b/apps/readest-app/src/styles/globals.css @@ -399,6 +399,16 @@ foliate-view { box-shadow: inset 0 0 0 2px transparent, inset 0 0 0 3px #6396e7; } +.window-button { + position: relative; +} + +.window-button::before { + content: ''; + position: absolute; + inset: -8px; +} + @keyframes spin-counterclockwise { from { transform: rotate(0deg);