u
This commit is contained in:
@@ -185,6 +185,8 @@ class AppSubNav extends PureComponent {
|
|||||||
sx={{
|
sx={{
|
||||||
width: SUB_NAV_WIDTH,
|
width: SUB_NAV_WIDTH,
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
|
ml: 3,
|
||||||
|
mr: 2,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@@ -204,7 +206,10 @@ class AppSubNav extends PureComponent {
|
|||||||
position: 'sticky',
|
position: 'sticky',
|
||||||
top: 0,
|
top: 0,
|
||||||
alignSelf: 'flex-start',
|
alignSelf: 'flex-start',
|
||||||
|
height: 'var(--df-vh, 100vh)',
|
||||||
py: 4,
|
py: 4,
|
||||||
|
ml: 3,
|
||||||
|
mr: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{subNav.map(({ segment, label, title, help, icon: Icon }) => {
|
{subNav.map(({ segment, label, title, help, icon: Icon }) => {
|
||||||
@@ -296,26 +301,24 @@ export default function AppShell() {
|
|||||||
return (
|
return (
|
||||||
<Box sx={{ display: 'flex', minHeight: 'var(--df-vh, 100vh)', bgcolor: 'background.default' }}>
|
<Box sx={{ display: 'flex', minHeight: 'var(--df-vh, 100vh)', bgcolor: 'background.default' }}>
|
||||||
<AppSidebar activeNav={activeNav} navigate={navigate} />
|
<AppSidebar activeNav={activeNav} navigate={navigate} />
|
||||||
|
<AppSubNav
|
||||||
|
activeNav={activeNav}
|
||||||
|
activeSub={activeSub}
|
||||||
|
navigate={navigate}
|
||||||
|
/>
|
||||||
<Box
|
<Box
|
||||||
component="main"
|
component="main"
|
||||||
sx={(theme) => ({
|
sx={(theme) => ({
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
gap: 2,
|
flexDirection: 'column',
|
||||||
py: 4,
|
py: 4,
|
||||||
px: 3,
|
pr: 3,
|
||||||
bgcolor: theme.nav.mainBackground,
|
bgcolor: theme.nav.mainBackground,
|
||||||
minWidth: 0,
|
minWidth: 0,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<AppSubNav
|
<Outlet />
|
||||||
activeNav={activeNav}
|
|
||||||
activeSub={activeSub}
|
|
||||||
navigate={navigate}
|
|
||||||
/>
|
|
||||||
<Box sx={{ flexGrow: 1, minWidth: 0 }}>
|
|
||||||
<Outlet />
|
|
||||||
</Box>
|
|
||||||
</Box>
|
</Box>
|
||||||
<ChatFab />
|
<ChatFab />
|
||||||
<ChatDrawer />
|
<ChatDrawer />
|
||||||
|
|||||||
Reference in New Issue
Block a user