Chapter nav: hide Prev/Next when at boundary, remove date from header
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

This commit is contained in:
Admin
2026-03-01 22:08:30 +05:00
parent 42ed77b7b8
commit c8c5264f27

View File

@@ -1407,8 +1407,6 @@ const chapterTmpl = `
onmouseover="this.style.color='#f4f4f5'" onmouseout="this.style.color='#a1a1aa'">
← Prev
</a>
{{else}}
<span style="flex-shrink:0;padding:0.375rem 0.625rem;border-radius:0.5rem;color:#3f3f46;font-size:0.8125rem;cursor:default;" aria-hidden="true">&#8592; Prev</span>
{{end}}
<!-- Chapter title button — opens chapter list drawer -->
@@ -1417,10 +1415,7 @@ const chapterTmpl = `
title="Jump to chapter"
aria-label="Jump to chapter"
style="flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:0.375rem;overflow:hidden;background:transparent;border:none;cursor:pointer;padding:0.25rem 0.25rem;">
<span style="min-width:0;display:flex;flex-direction:column;align-items:center;overflow:hidden;">
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.8125rem;color:#a1a1aa;max-width:100%;">{{.Title}}</span>
{{if .ChapterDate}}<span style="font-size:0.6875rem;color:#52525b;white-space:nowrap;">{{.ChapterDate}}</span>{{end}}
</span>
<span style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.8125rem;color:#a1a1aa;max-width:100%;">{{.Title}}</span>
<span style="flex-shrink:0;font-size:0.625rem;color:#52525b;" aria-hidden="true">&#9660;</span>
</button>
@@ -1437,8 +1432,6 @@ const chapterTmpl = `
onmouseover="this.style.color='#f4f4f5'" onmouseout="this.style.color='#a1a1aa'">
Next &#8594;
</a>
{{else}}
<span style="flex-shrink:0;padding:0.375rem 0.625rem;border-radius:0.5rem;color:#3f3f46;font-size:0.8125rem;cursor:default;" aria-hidden="true">Next &#8594;</span>
{{end}}
<!-- TTS play/pause button -->