fix: styles
This commit is contained in:
@@ -185,26 +185,28 @@ export function Layout() {
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
minHeight: '100vh',
|
minHeight: '100vh',
|
||||||
|
width: '100vw',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
px: '185px',
|
px: { xs: 0, sm: 0, md: '185px' },
|
||||||
py: '105px',
|
py: { xs: 0, sm: 0, md: '105px' },
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
backgroundColor: 'background.default',
|
backgroundColor: 'background.default',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
width={1100}
|
width={{ xs: '100vw', md: 1100 }}
|
||||||
height={800}
|
height={{ xs: '100vh', md: 800 }}
|
||||||
display="flex"
|
display="flex"
|
||||||
flexDirection="column"
|
flexDirection="column"
|
||||||
bgcolor="background.paper"
|
bgcolor="background.paper"
|
||||||
overflow="hidden"
|
overflow="hidden"
|
||||||
borderRadius={2}
|
borderRadius={{ xs: 0, md: 2 }}
|
||||||
|
boxShadow={{ xs: 0, md: 3 }}
|
||||||
>
|
>
|
||||||
{!isMdUp && (
|
{!isMdUp && (
|
||||||
<AppBar position="static">
|
<AppBar position="static" elevation={0}>
|
||||||
<Toolbar sx={{ backgroundColor: 'background.paper' }}>
|
<Toolbar sx={{ backgroundColor: 'background.paper' }}>
|
||||||
<IconButton edge="start" onClick={() => setDrawerOpen(true)}>
|
<IconButton edge="start" onClick={() => setDrawerOpen(true)}>
|
||||||
<Menu size={24} color="#1976d2" variant="Bold" />
|
<Menu size={24} color="#1976d2" variant="Bold" />
|
||||||
@@ -215,7 +217,12 @@ export function Layout() {
|
|||||||
|
|
||||||
<Box sx={{ flexGrow: 1, display: 'flex', overflow: 'hidden' }}>
|
<Box sx={{ flexGrow: 1, display: 'flex', overflow: 'hidden' }}>
|
||||||
{isMdUp && (
|
{isMdUp && (
|
||||||
<Box sx={{ width: navWidthMd, flexShrink: 0 }}>
|
<Box
|
||||||
|
sx={{
|
||||||
|
width: navWidthMd,
|
||||||
|
flexShrink: 0,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<SideNav
|
<SideNav
|
||||||
navConfig={navConfig}
|
navConfig={navConfig}
|
||||||
header={<Header />}
|
header={<Header />}
|
||||||
@@ -229,9 +236,9 @@ export function Layout() {
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
height: '100%',
|
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
px: 3,
|
px: { xs: 2, sm: 3 },
|
||||||
|
py: { xs: 2, sm: 3 },
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
|
|||||||
Reference in New Issue
Block a user