fix: toc width on mobile

This commit is contained in:
ZhenShuo Leo
2025-06-19 20:06:10 +08:00
parent 1f49f8f89f
commit 5ebd4ef0dd
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -3370,7 +3370,9 @@ button, [role="button"] {
margin-top: calc(var(--spacing) * 3); margin-top: calc(var(--spacing) * 3);
} }
#TableOfContents { #TableOfContents {
max-width: 25vw; @media (width >= 1024px) {
max-width: 25vw;
}
} }
#TOCView { #TOCView {
max-height: calc(100vh - 150px); max-height: calc(100vh - 150px);
+1 -1
View File
@@ -65,7 +65,7 @@ button,
/* Table of Contents */ /* Table of Contents */
#TableOfContents { #TableOfContents {
max-width: 25vw; @apply lg:max-w-[25vw];
} }
#TOCView { #TOCView {