Skip to content

Commit

Permalink
[docs] Fix responsive app shell alt layout demo (#3105)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Dec 5, 2022
1 parent fa99d8c commit 2c8247a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/src/pages/app-shell-demo-alt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,22 @@ export default function AppShellDemo() {
asideOffsetBreakpoint="sm"
fixed
navbar={
<Navbar p="md" hiddenBreakpoint="sm" hidden={!opened} width={{ sm: 200, lg: 300 }}>
<Navbar
py="sm"
px="md"
hiddenBreakpoint="sm"
hidden={!opened}
width={{ sm: 200, lg: 300 }}
>
<MediaQuery largerThan="sm" styles={{ display: 'none' }}>
<Burger
opened={opened}
onClick={() => setOpened((o) => !o)}
size="sm"
color={theme.colors.gray[6]}
mr="xl"
/>
</MediaQuery>
<Text>Application navbar</Text>
</Navbar>
}
Expand Down

0 comments on commit 2c8247a

Please sign in to comment.