260507_01_ENH: SafetyInspectionTotal, SafetyInspectionDivDetail 페이지 구현
This commit is contained in:
@@ -55,7 +55,7 @@ const MainLayout = ({ children }: MainLayoutProps) => {
|
||||
if(!isMounted) return null;
|
||||
|
||||
return (
|
||||
<div className="h-screen flex flex-col bg-transparent overflow-hidden">
|
||||
<div className="flex h-dvh flex-col overflow-hidden bg-transparent">
|
||||
<LayoutCategoryProvider selectedDiv={selectedDiv}>
|
||||
<Header
|
||||
topMenus={TOP_MENUS}
|
||||
@@ -65,16 +65,18 @@ const MainLayout = ({ children }: MainLayoutProps) => {
|
||||
onLogin={openLoginDialog}
|
||||
onLogout={handleLogout}
|
||||
/>
|
||||
<div className="flex flex-1">
|
||||
<div className="flex h-[calc(100dvh-4rem)] min-h-0 overflow-hidden">
|
||||
<Sidebar
|
||||
sideMenus={SIDE_MENUS}
|
||||
isOpen={menuOpen}
|
||||
selectedDiv={selectedDiv}
|
||||
onChangeDiv={setSelectedDiv}
|
||||
/>
|
||||
<main className="flex-1 p-4">
|
||||
{children}
|
||||
</main>
|
||||
<div className="h-full min-h-0 flex-1 overflow-y-scroll overscroll-contain p-4">
|
||||
<main className="h-full min-h-0 flex-1">
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
<LoginDialog />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user