Skip to content

Commit

Permalink
Take into account top when defining max-height of TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdesmet authored Apr 26, 2023
1 parent 019b762 commit 74c8242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _sass/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
top: 2rem;
right: 0;
overflow-y: auto;
max-height: 100vh; // Allows scroll within toc
max-height: calc(100vh - 2rem); // Allow scroll within toc
margin-bottom: 2rem;

h6 {
Expand Down Expand Up @@ -40,4 +40,4 @@
padding-left: 1rem;
}
}
}
}

0 comments on commit 74c8242

Please sign in to comment.