feat: enhance layout structure for improved sidebar integration

- Updated layout to include a navigation bar with SidebarTrigger and action role.
- Adjusted main content area for better responsiveness and overflow handling.
This commit is contained in:
typist
2025-10-28 00:31:55 +08:00
parent 4f1e9dcde1
commit 211ad4bd64

View File

@@ -7,9 +7,14 @@ import { AppSidebar } from "@/components/sidebar";
export const Layout: FC = () => (
<SidebarProvider>
<AppSidebar />
<main>
<SidebarTrigger />
<Outlet />
</main>
<div className="p-4 flex flex-col w-full h-[100vh]">
<nav className="flex items-center justify-between">
<SidebarTrigger className="size-10" />
<div role="actions" />
</nav>
<main className="flex-1 overflow-auto p-4">
<Outlet />
</main>
</div>
</SidebarProvider>
);