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

This commit is contained in:
Aditya Raj Singh 2026-07-04 11:39:10 +05:30 committed by GitHub
parent c05ead7e8e
commit aac2516637
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {