Center layout

This commit is contained in:
hzrd149 2023-10-24 10:57:07 -05:00
parent 28de4d4704
commit a11d44852c
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"nostrudel": patch
---
Center layout

View File

@ -1,5 +1,5 @@
import React, { useEffect } from "react";
import { Container, Flex, Spacer, useDisclosure } from "@chakra-ui/react";
import { Box, Container, Flex, Spacer, useDisclosure } from "@chakra-ui/react";
import { useKeyPressEvent } from "react-use";
import { ErrorBoundary } from "../error-boundary";
@ -50,6 +50,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
>
<ErrorBoundary>{children}</ErrorBoundary>
</Container>
{!isMobile && <Box flexShrink={1} maxW="15rem" flex={1} />}
{isMobile && (
<MobileBottomNav
position="fixed"