diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 1748432f..c3401eff 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -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); diff --git a/assets/css/main.css b/assets/css/main.css index 21b3b1fb..0737b8cb 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -59,6 +59,16 @@ body button { } /* Table of Contents */ +#TableOfContents { + 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; diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 5f3ffa1f..f7d0acf7 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,5 +1,4 @@ -