Skip to content

Commit

Permalink
UI: Fix TOC scroll (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez authored Apr 24, 2024
1 parent bcdecc4 commit 7483505
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/theme/TOC/styles.module.css
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -18,4 +19,5 @@

[data-theme='dark'] .tableOfContents {
border-left: 1px solid var(--header-border-bottom);
}
}

0 comments on commit 7483505

Please sign in to comment.