Skip to content

Commit bee6134

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix: dashboard not scrolling due to body overflow hidden
1 parent 80f6665 commit bee6134

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/dashboard/DashboardLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { DashboardHeader } from './DashboardHeader';
44

55
export const DashboardLayout = () => {
66
return (
7-
<div className="min-h-screen flex bg-neutral-950 flex-col md:flex-row font-sans">
7+
<div className="absolute inset-0 w-full h-full flex bg-neutral-950 flex-col md:flex-row font-sans">
88
<DashboardSidebar />
9-
<div className="flex-1 flex flex-col min-w-0">
9+
<div className="flex-1 flex flex-col min-w-0 overflow-hidden">
1010
<DashboardHeader />
11-
<main className="flex-1 overflow-y-auto p-4 md:p-8 shrink-0">
11+
<main className="flex-1 overflow-y-auto p-4 md:p-8 shrink-0 relative">
1212
<Outlet />
1313
</main>
1414
</div>

0 commit comments

Comments
 (0)