Skip to content

Commit b024eb6

Browse files
committed
fix: ensure last sidebar item is visible when scrolling
Fixes #8521 - Added sticky positioning to sidebar - Constrained max-height to account for navbar height - Enables proper scrolling without cutting off last items
1 parent 914daa3 commit b024eb6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/ui-components/src/Containers/Sidebar/index.module.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
bg-white
1111
px-4
1212
py-6
13-
sm:overflow-auto
13+
sm:sticky
14+
sm:top-16
15+
sm:max-h-[calc(100vh-6.5rem)]
16+
sm:overflow-y-auto
1417
sm:border-r
1518
md:max-w-xs
1619
lg:px-6

0 commit comments

Comments
 (0)