mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-26 17:52:18 +01:00
Center layout
This commit is contained in:
parent
28de4d4704
commit
a11d44852c
5
.changeset/famous-spies-mix.md
Normal file
5
.changeset/famous-spies-mix.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"nostrudel": patch
|
||||
---
|
||||
|
||||
Center layout
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user