From 79f5edf80cb403152a54120211d67582107567a8 Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 1 Mar 2026 20:18:45 +0500 Subject: [PATCH] feat: chapter list drawer in sticky header + remove duplicate title heading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove the duplicate

that appeared in the content area below the sticky bar (title is already shown in the header) - Replace the static title span with a clickable button (title + ▼ caret) that opens a full-width chapter list drawer below the sticky bar - Drawer is server-rendered with all chapters; current chapter is highlighted in amber and scrolled into view on open; clicking any row navigates to it and closes the drawer - Opening the chapter list closes the settings panel and vice versa - Both panels dismiss on outside click - Pass AllChapters to the chapter template data struct --- scraper/internal/server/ui.go | 78 ++++++++++++++++++++++++++++++----- 1 file changed, 67 insertions(+), 11 deletions(-) diff --git a/scraper/internal/server/ui.go b/scraper/internal/server/ui.go index 8b8bf44..31f82bc 100644 --- a/scraper/internal/server/ui.go +++ b/scraper/internal/server/ui.go @@ -1075,8 +1075,14 @@ const chapterTmpl = ` ← Prev {{end}} - - {{.Title}} + + {{if .NextN}} @@ -1119,6 +1125,28 @@ const chapterTmpl = ` + + +