Skip to content

Commit

Permalink
Merge pull request #1784 from dadiorchen/fix/no-height-in-mobile
Browse files Browse the repository at this point in the history
fix: empty map on mobile
  • Loading branch information
dadiorchen authored Jun 4, 2024
2 parents 0dfe26d + f5611d7 commit 8cba2d8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/LayoutMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Drawer = dynamic(() => import('./Drawer'), { ssr: false });

const useStyles = makeStyles()((theme) => ({
root: {
height: '100vh',
display: 'flex',
flexDirection: 'column',
},
Expand Down Expand Up @@ -61,13 +62,7 @@ const Layout = forwardRef(({ children }, ref) => {
}

return (
<Box
className={classes.root}
sx={{
height: () =>
typeof window !== 'undefined' && `${window.innerHeight}px`,
}}
>
<Box className={classes.root}>
<Navbar />
<Box sx={{ position: 'relative', width: 1, height: 1 }}>
<Box
Expand Down

0 comments on commit 8cba2d8

Please sign in to comment.