From b0e23cb50aa715f702271fd7f4a2517a80b231f4 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 11 Apr 2026 15:52:14 +0500 Subject: [PATCH] feat: floating scroll nav buttons in scroll reader mode Up/down chevron buttons fixed to the bottom-right of the viewport. At the top of the chapter the up button becomes a Prev chapter link; at the bottom the down button becomes an amber Next chapter link. Hidden in focus mode (uses its own pill). Lifts above the audio mini-player when it is active. --- .../books/[slug]/chapters/[n]/+page.svelte | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/ui/src/routes/books/[slug]/chapters/[n]/+page.svelte b/ui/src/routes/books/[slug]/chapters/[n]/+page.svelte index 21099ae..e3c63e8 100644 --- a/ui/src/routes/books/[slug]/chapters/[n]/+page.svelte +++ b/ui/src/routes/books/[slug]/chapters/[n]/+page.svelte @@ -793,6 +793,67 @@ {/if} + +{#if layout.readMode === 'scroll' && !layout.focusMode} +{@const atTop = scrollProgress <= 0.01} +{@const atBottom = scrollProgress >= 0.99} +
+ + {#if atTop && data.prev} + + + + + + {:else} + + {/if} + + + {#if atBottom && data.next} + + + + + + {:else} + + {/if} +
+{/if} + {#if layout.focusMode}