From f5611d73d02e666d88ab87be09478d4662de736f Mon Sep 17 00:00:00 2001 From: deanchen Date: Tue, 4 Jun 2024 11:48:33 +0800 Subject: [PATCH] fix: empty map on mobile --- src/components/LayoutMobile.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/LayoutMobile.js b/src/components/LayoutMobile.js index 794bc7894..c5e397108 100644 --- a/src/components/LayoutMobile.js +++ b/src/components/LayoutMobile.js @@ -15,6 +15,7 @@ const Drawer = dynamic(() => import('./Drawer'), { ssr: false }); const useStyles = makeStyles()((theme) => ({ root: { + height: '100vh', display: 'flex', flexDirection: 'column', }, @@ -61,13 +62,7 @@ const Layout = forwardRef(({ children }, ref) => { } return ( - - typeof window !== 'undefined' && `${window.innerHeight}px`, - }} - > +