Merge pull request #2258 from ZhenShuo2021/fix/mobile-toc-width

🐛 Fix: TOC is too narrow on mobile devices
This commit is contained in:
Nuno C.
2025-07-10 11:40:37 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -3415,7 +3415,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 {