From 439248762939dd927b17a9ee3700e8c8a771acdf Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Sun, 1 Feb 2026 10:04:02 -0700 Subject: [PATCH] fix(mobile): make nav independently scrollable - Use viewport-relative max-height instead of fixed 500px - Add overflow-y:auto for internal scrolling on long anchor lists --- docs/static/style.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/static/style.css b/docs/static/style.css index a1106ec..fc7d9ca 100644 --- a/docs/static/style.css +++ b/docs/static/style.css @@ -537,7 +537,10 @@ th { /* Show nav when checkbox is checked - checkbox is inside header now */ .sidebar:has(.nav-toggle:checked) nav { - max-height: 500px; + max-height: calc(100vh - 161px); + /* Viewport-relative, account for header */ + overflow-y: auto; + /* Enable internal scrolling when content exceeds height */ opacity: 1; margin-top: 1rem; padding-top: 1rem; @@ -585,4 +588,4 @@ th { td code { white-space: normal; } -} \ No newline at end of file +}