refactor(nui): Improve design scalability

This commit is contained in:
Luke committed 2022-02-14 23:10:42 +01:00
1 parent 4e027c18fe
commit 1e00e9fe02
6 files changed
+20 -20

No files matched your search

+6 -6
View File
@@ -1,4 +1,4 @@
import { Center, Box } from '@chakra-ui/react';
import { Flex, Box } from '@chakra-ui/react';
import { debugData } from '../utils/debugData';
import TopBar from './NavBars/TopBar';
import LeftBar from './NavBars/LeftBar';
@@ -31,12 +31,12 @@ const App: React.FC = () => {
useNuiEvent('openUI', () => navigate('/'));
return (
<Center w="100%" h="100%">
<Flex w="100%" h="100%" alignItems="center" justifyContent="center">
<Box
width="60%"
height="50%"
width="6xl"
height="lg"
backgroundColor="#191E26"
borderRadius="1vh"
borderRadius="lg"
color="white"
fontFamily="Poppins"
userSelect="none"
@@ -51,7 +51,7 @@ const App: React.FC = () => {
</Routes>
</MainContent>
</Box>
</Center>
</Flex>
);
};