From fe79bd87518d8811310db16522054c0eb40b6973 Mon Sep 17 00:00:00 2001 From: Ian <> Date: Wed, 29 May 2024 13:46:40 -0500 Subject: [PATCH] Fix scrolling issue in sidenav With the new filter control now taking up vertical space in the sidenav, tweak the value for max-height for .toc-books (the container that holds all the nav book/article links). --- blocks/sidenav/sidenav.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blocks/sidenav/sidenav.css b/blocks/sidenav/sidenav.css index 1659a34..c1fe49d 100644 --- a/blocks/sidenav/sidenav.css +++ b/blocks/sidenav/sidenav.css @@ -501,8 +501,9 @@ @media (min-width: 901px) { .pan-sidenav .content .content-inner .toc-books { - /* 117px is the height of the edition banner */ - max-height: calc(100vh - var(--nav-height) - 117px); + /* 200px is the height, measured from the bottom of header to */ + /* the top of first entry in ToC (y2-y1 = 400-200 = 200px) */ + max-height: calc(100vh - var(--nav-height) - 200px); padding-right: var(--spacing--2); overflow-y: scroll; /* Scrollbar styles */