Skip to content

Commit 5537370

Browse files
authored
Merge pull request #19 from shellui-dev/fix/sidebar-overflow-scroll
fix: sidebar tree scrolls when content overflows viewport
2 parents c303425 + e7211f9 commit 5537370

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ShellDocs.Components/Chrome/DocsSidebar.razor.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
.sidebar-tree {
1010
flex: 1;
11+
/* flex items default to `min-height: auto` (intrinsic content size), so
12+
without this the tree grows past the parent instead of scrolling. */
13+
min-height: 0;
1114
display: flex;
1215
flex-direction: column;
1316
gap: 1.25rem;

0 commit comments

Comments
 (0)