From 42ed77b7b89a9d7baf793c23ce06aa8ff1cee1a7 Mon Sep 17 00:00:00 2001 From: Admin Date: Sun, 1 Mar 2026 22:07:40 +0500 Subject: [PATCH] Flatten chapter reader nav buttons: remove background fill from Prev/Next/Listen --- scraper/internal/server/ui.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scraper/internal/server/ui.go b/scraper/internal/server/ui.go index 3df4c30..0f2c6e5 100644 --- a/scraper/internal/server/ui.go +++ b/scraper/internal/server/ui.go @@ -1403,12 +1403,12 @@ const chapterTmpl = ` hx-swap="innerHTML" title="Previous chapter" aria-label="Previous chapter" - style="flex-shrink:0;padding:0.375rem 0.625rem;border-radius:0.5rem;background:#27272a;color:#d4d4d8;font-size:0.8125rem;text-decoration:none;transition:background 0.15s;" - onmouseover="this.style.background='#3f3f46'" onmouseout="this.style.background='#27272a'"> + style="flex-shrink:0;padding:0.375rem 0.625rem;border-radius:0.5rem;background:transparent;color:#a1a1aa;font-size:0.8125rem;text-decoration:none;transition:color 0.15s;" + onmouseover="this.style.color='#f4f4f5'" onmouseout="this.style.color='#a1a1aa'"> ← Prev {{else}} - + {{end}} @@ -1433,12 +1433,12 @@ const chapterTmpl = ` hx-swap="innerHTML" title="Next chapter" aria-label="Next chapter" - style="flex-shrink:0;padding:0.375rem 0.625rem;border-radius:0.5rem;background:#27272a;color:#d4d4d8;font-size:0.8125rem;text-decoration:none;transition:background 0.15s;" - onmouseover="this.style.background='#3f3f46'" onmouseout="this.style.background='#27272a'"> + style="flex-shrink:0;padding:0.375rem 0.625rem;border-radius:0.5rem;background:transparent;color:#a1a1aa;font-size:0.8125rem;text-decoration:none;transition:color 0.15s;" + onmouseover="this.style.color='#f4f4f5'" onmouseout="this.style.color='#a1a1aa'"> Next → {{else}} - + {{end}} @@ -1446,8 +1446,8 @@ const chapterTmpl = ` onclick="ttsToggle()" title="Listen" aria-label="Listen" - style="flex-shrink:0;display:flex;align-items:center;gap:0.375rem;padding:0.375rem 0.75rem;border-radius:0.5rem;background:#d97706;color:#fff;font-size:0.8125rem;font-weight:500;border:none;cursor:pointer;transition:background 0.15s;" - onmouseover="this.style.background='#b45309'" onmouseout="this.style.background='#d97706'"> + style="flex-shrink:0;display:flex;align-items:center;gap:0.375rem;padding:0.375rem 0.625rem;border-radius:0.5rem;background:transparent;color:#f59e0b;font-size:0.8125rem;font-weight:500;border:none;cursor:pointer;transition:color 0.15s;" + onmouseover="this.style.color='#fbbf24'" onmouseout="this.style.color='#f59e0b'"> Listen