fix(preview): keep the EPUB table-of-contents button clear of the header (#6010)

This commit is contained in:
Aditya Raj Singh authored and GitHub committed 2026-07-04 08:09:10 +02:00
1 parent c05ead7e8e
commit aac2516637
1 file changed
+7
+7
View File
@@ -29,6 +29,13 @@
.epub-reader .tocButton {
color: var(--text);
/*
* vue-reader positions the TOC toggle at top: 10px, which lands under the
* fixed 4em header bar (see .header) — so clicks hit the header's Close
* button instead of opening the table of contents. Push it just below the
* header, tracking the header's height so it stays clear if that changes.
*/
top: calc(4em + 10px);
}
.epub-reader .tocButton.tocButtonExpanded {