Files
LogisicsApp_Client/app/dashboard/layout.tsx
m7amedez5511 db64b79fe3 first action update user pages .
2-update driver pages [fixed image display and notyfi]
3-update car pages [fixed image]
4-build tripe pages crud
5-build some role pages
6-build audit page
7-update ui compounants
8-update saidebar and topbar
9-cheange view to be ar view
10-cheange stractcher to be app,src
11-add validation layer by yup
12-add api image-proxy to broke image corse bloken
2026-06-23 15:54:07 +03:00

36 lines
1.1 KiB
TypeScript

import { Sidebar } from "../components/layout/Sidebar";
import { Topbar } from "../components/layout/Topbar";
export default function DashboardLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<div
className="flex min-h-screen"
style={{ background: "var(--color-surface-muted)" }}
>
{/*
Sidebar is still the first flex child. With dir="rtl" on <html>
(set in app/layout.tsx) this is enough to place the full
sidebar on the right with no positional CSS — see Sidebar.tsx.
*/}
<Sidebar />
{/*
The compact icon rail (md and below) is `position: fixed`, so it
doesn't take up flex space. This wrapper reserves room for it
with `paddingInlineEnd`, which means "right padding in RTL,
left padding in LTR" — it never needs to be touched again if
direction changes.
*/}
<div
className="flex min-w-0 flex-1 flex-col md:[padding-inline-end:var(--sidebar-width-compact)] lg:[padding-inline-end:0]"
>
<Topbar />
<main className="flex-1 p-6">{children}</main>
</div>
</div>
);
}