diff --git a/ui/src/lib/components/ChapterPickerOverlay.svelte b/ui/src/lib/components/ChapterPickerOverlay.svelte
index e824d17..887e2ec 100644
--- a/ui/src/lib/components/ChapterPickerOverlay.svelte
+++ b/ui/src/lib/components/ChapterPickerOverlay.svelte
@@ -15,7 +15,7 @@
zIndex?: string;
/** Called when a chapter row is tapped. The overlay does NOT close itself. */
onselect: (chapterNumber: number) => void;
- /** Called when the close / chevron-down button is tapped. */
+ /** Called when the close (✕) button is tapped. */
onclose: () => void;
}
@@ -40,12 +40,6 @@
)
);
- /** Scroll the active chapter into view instantly (no animation) when the
- * list is first rendered so the user never has to hunt for their position. */
- function scrollIfActive(node: HTMLElement, isActive: boolean) {
- if (isActive) node.scrollIntoView({ block: 'center', behavior: 'instant' });
- }
-
function handleClose() {
search = '';
onclose();
@@ -73,9 +67,9 @@
class="p-2 rounded-full text-(--color-muted) hover:text-(--color-text) hover:bg-(--color-surface-2) transition-colors"
aria-label="Close chapter picker"
>
-
+
Chapters
@@ -105,7 +99,6 @@