Skip to content

Commit 662ec2a

Browse files
committed
refactor: update overflow properties in Layout and Sidebar components for improved scrolling behavior
1 parent 51d248b commit 662ec2a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
1111
<div className="flex">
1212
<Sidebar />
1313
<SidebarToggle onClick={() => setOpen(true)} />
14-
<main className="flex-1 min-h-screen lg:ml-80 max-w-7xl mx-auto p-6 space-y-6 overflow-hidden">
14+
<main className="flex-1 min-h-screen lg:ml-80 max-w-7xl mx-auto p-6 space-y-6 overflow-auto">
1515
{children}
1616
</main>
1717
</div>

src/components/layout/Sidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export function Sidebar() {
8181
</button>
8282
</div>
8383

84-
{/* Navigation Content - no scroll, fixed height */}
85-
<div className="flex-1 overflow-hidden">
84+
<div className="flex-1 overflow-y-auto">
8685
{/* Navigation Menu */}
8786
<div className="p-4">
8887
<nav className="space-y-2">

0 commit comments

Comments
 (0)