Merge pull request #2110 from ZhenShuo2021/fix/toc

 Improved Table of Contents Display
This commit is contained in:
Nuno Coração
2025-05-27 00:04:31 +01:00
committed by GitHub
3 changed files with 22 additions and 31 deletions

View File

@@ -1507,8 +1507,8 @@ body.zen-mode-enable {
.overflow-visible {
overflow: visible;
}
.overflow-y-scroll {
overflow-y: scroll;
.overflow-y-auto {
overflow-y: auto;
}
.overscroll-contain {
overscroll-behavior: contain;
@@ -3534,6 +3534,14 @@ body a, body button {
.prose div.min-w-0.max-w-prose>*:first-child {
margin-top: calc(var(--spacing) * 3);
}
#TableOfContents {
max-width: 25vw;
}
#TOCView {
max-height: calc(100vh - 150px);
min-height: 0;
overflow-x: hidden;
}
.toc ul, .toc li {
list-style-type: none;
padding-inline: calc(var(--spacing) * 0);