🐛 Table of Contents takes too much space (#1607)

This commit is contained in:
ZhenShuo Leo
2025-05-05 08:27:22 +08:00
parent 1d21656d5e
commit 6fb8b945d7
2 changed files with 7 additions and 0 deletions

View File

@@ -3534,6 +3534,9 @@ body a, body button {
.prose div.min-w-0.max-w-prose>*:first-child {
margin-top: calc(var(--spacing) * 3);
}
#TableOfContents {
max-width: 25vw;
}
.toc ul, .toc li {
list-style-type: none;
padding-inline: calc(var(--spacing) * 0);

View File

@@ -59,6 +59,10 @@ body button {
}
/* Table of Contents */
#TableOfContents {
max-width: 25vw;
}
.toc ul,
.toc li {
@apply px-0 leading-snug list-none;