Skip to content

Commit

Permalink
Fix scrolling issue in sidenav
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Ian committed May 29, 2024
1 parent a282ec1 commit fe79bd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blocks/sidenav/sidenav.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fe79bd8

Please sign in to comment.