refactor: simplify SidebarInset structure and adjust overflow behavior

This commit is contained in:
mlogclub
2026-05-06 21:03:15 +08:00
parent 8ff68acc54
commit 3734e8ec03
+2 -4
View File
@@ -61,13 +61,11 @@ export default function DashboardLayout({
>
<NotificationProvider>
<AppSidebar variant="inset" />
<SidebarInset className="min-h-0 overflow-hidden">
<SidebarInset>
<SiteHeader />
<div className="flex min-h-0 flex-1 flex-col overflow-hidden">
<div className="@container/main flex min-h-0 flex-1 flex-col gap-2 overflow-hidden">
<div className="@container/main flex min-h-0 flex-1 flex-col gap-2 overflow-auto">
{children}
</div>
</div>
</SidebarInset>
</NotificationProvider>
</SidebarProvider>