fix: sidebar fills full grid cell height
Sidebar wrapper uses flex + h-full, .sidebar gets height: 100%, removed min-height: 100vh (grid cell handles sizing). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -71,8 +71,8 @@ export function AppLayout() {
|
|||||||
{/* Top Bar - spans full width */}
|
{/* Top Bar - spans full width */}
|
||||||
<TopBar />
|
<TopBar />
|
||||||
|
|
||||||
{/* Sidebar - desktop only */}
|
{/* Sidebar - desktop only, must fill grid row */}
|
||||||
<div className="hidden md:block">
|
<div className="hidden md:flex md:flex-col md:min-h-0 md:h-full">
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ export function Sidebar() {
|
|||||||
<nav
|
<nav
|
||||||
ref={sidebarRef}
|
ref={sidebarRef}
|
||||||
className="sidebar flex flex-col h-full"
|
className="sidebar flex flex-col h-full"
|
||||||
style={{ background: '#0f1118', borderRight: '1px solid #1e2130', minHeight: '100vh' }}
|
style={{ background: '#0f1118', borderRight: '1px solid #1e2130' }}
|
||||||
onWheel={handleWheel}
|
onWheel={handleWheel}
|
||||||
>
|
>
|
||||||
{/* Pinned sidebar content */}
|
{/* Pinned sidebar content */}
|
||||||
@@ -422,7 +422,7 @@ export function Sidebar() {
|
|||||||
<nav
|
<nav
|
||||||
ref={sidebarRef}
|
ref={sidebarRef}
|
||||||
className="sidebar flex flex-col items-center h-full"
|
className="sidebar flex flex-col items-center h-full"
|
||||||
style={{ background: '#0f1118', borderRight: '1px solid #1e2130', minHeight: '100vh' }}
|
style={{ background: '#0f1118', borderRight: '1px solid #1e2130' }}
|
||||||
onWheel={handleWheel}
|
onWheel={handleWheel}
|
||||||
>
|
>
|
||||||
{/* Grouped nav items */}
|
{/* Grouped nav items */}
|
||||||
|
|||||||
@@ -272,6 +272,7 @@
|
|||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user