✨ Feat: Prevent ToC flicker on initial load

Use CSS to control ToC height instead of JavaScript to prevent flickering.
This commit is contained in:
ZhenShuo Leo committed 2025-05-05 08:30:34 +08:00
1 parent 6fb8b945d7
commit c59cb293bf
3 files changed
+15 -31

No files matched your search

+6
View File
@@ -63,6 +63,12 @@ body button {
max-width: 25vw;
}
#TOCView {
max-height: calc(100vh - 150px);
min-height: 0;
overflow-x: hidden;
}
.toc ul,
.toc li {
@apply px-0 leading-snug list-none;