Chapter nav: hide Prev/Next when at boundary, remove date from header
This commit is contained in:
@@ -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">← 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">▼</span>
|
||||
</button>
|
||||
|
||||
@@ -1437,8 +1432,6 @@ const chapterTmpl = `
|
||||
onmouseover="this.style.color='#f4f4f5'" onmouseout="this.style.color='#a1a1aa'">
|
||||
Next →
|
||||
</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 →</span>
|
||||
{{end}}
|
||||
|
||||
<!-- TTS play/pause button -->
|
||||
|
||||
Reference in New Issue
Block a user