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