fix: chapter list toggle no longer overwrites title span with arrow
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-02 11:17:58 +05:00
parent 5182f31518
commit 42d0d53b52

View File

@@ -2311,7 +2311,6 @@ const chapterTmpl = `
// ── panel toggles (chapter list / settings) ───────────────────────────────────
window.closeChapterList = function () {
chapterListPanel.style.display = 'none';
chapterListBtn.querySelector('span:last-child').innerHTML = '▼';
};
window.toggleChapterList = function () {
var open = chapterListPanel.style.display !== 'none';
@@ -2320,7 +2319,6 @@ const chapterTmpl = `
closeChapterList();
} else {
chapterListPanel.style.display = 'block';
chapterListBtn.querySelector('span:last-child').innerHTML = '▲';
var cur = chapterListPanel.querySelector('[data-current="1"]');
if (cur) cur.scrollIntoView({ block: 'center' });
}