Skip to content

Commit 925cd42

Browse files
committed
fix: RootLayout maxPageWidth
1 parent 5a034f8 commit 925cd42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/layouts/RootLayout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { Box } from "@chakra-ui/react"
1+
import { Container } from "@chakra-ui/react"
22

33
import Nav from "@/components/Nav"
44
import Footer from "@/components/Footer"
55

6+
import { lightTheme as oldTheme } from "../theme"
7+
68
export const RootLayout = ({ children }) => (
7-
<Box px={20}>
9+
<Container mx="auto" maxW={oldTheme.variables.maxPageWidth}>
810
{/* TODO: get proper path value after setting i18n */}
911
<Nav path="" />
1012

1113
{children}
1214

13-
<Box px={2}>
14-
<Footer />
15-
</Box>
16-
</Box>
15+
<Footer />
16+
</Container>
1717
)

0 commit comments

Comments
 (0)