only show sidebar resizer when sidebar is actually shown

This commit is contained in:
Athou
2024-01-09 16:20:46 +01:00
parent d4ea51c145
commit 2bf9186135

View File

@@ -157,6 +157,7 @@ export default function Layout(props: LayoutProps) {
<Box className={classes.sidebarContent}>{props.sidebar}</Box> <Box className={classes.sidebarContent}>{props.sidebar}</Box>
</AppShell.Section> </AppShell.Section>
</AppShell.Navbar> </AppShell.Navbar>
<OnDesktop>
<Draggable <Draggable
axis="x" axis="x"
defaultPosition={{ defaultPosition={{
@@ -179,6 +180,7 @@ export default function Layout(props: LayoutProps) {
}} }}
></Box> ></Box>
</Draggable> </Draggable>
</OnDesktop>
<AppShell.Main id="content"> <AppShell.Main id="content">
<Suspense fallback={<Loader />}> <Suspense fallback={<Loader />}>