feat: responsive settings ui

This commit is contained in:
鲁树人
2023-06-10 00:45:41 +01:00
parent 1c3b6c45c6
commit 3e203b92ac
6 changed files with 294 additions and 171 deletions

View File

@@ -1,9 +1,14 @@
import { Container, Flex } from '@chakra-ui/react';
import { Container, Flex, useBreakpointValue } from '@chakra-ui/react';
import { Settings } from '~/features/settings/Settings';
export function SettingsTab() {
const containerProps = useBreakpointValue({
base: { p: '0' },
lg: { p: undefined },
});
return (
<Container as={Flex} maxW="container.lg">
<Container as={Flex} maxW="container.lg" {...containerProps}>
<Settings />
</Container>
);