From 7483505443fb7340adb102f4b054431ee81fcce0 Mon Sep 17 00:00:00 2001 From: Rob Dominguez Date: Wed, 24 Apr 2024 06:12:16 -0500 Subject: [PATCH] UI: Fix TOC scroll (#384) --- src/theme/TOC/styles.module.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/theme/TOC/styles.module.css b/src/theme/TOC/styles.module.css index d2b437325..fef6aaac1 100644 --- a/src/theme/TOC/styles.module.css +++ b/src/theme/TOC/styles.module.css @@ -1,9 +1,10 @@ .tableOfContents { - max-height: calc(100vh - (var(--ifm-navbar-height) - 20px)); + max-height: calc(100vh - (var(--ifm-navbar-height) - 80px)); position: sticky; top: calc(var(--ifm-navbar-height)); top: 92px; border-left: 1px solid var(--primary-neutral-200); + overflow-y: auto; } @media (max-width: 996px) { @@ -18,4 +19,5 @@ [data-theme='dark'] .tableOfContents { border-left: 1px solid var(--header-border-bottom); -} \ No newline at end of file +} +