refactor(nui): Layout improvements

This commit is contained in:
Luke committed 2022-01-02 00:54:39 +01:00
1 parent ed03361f61
commit 2c15418011
5 files changed
+35 -12

No files matched your search

+9 -7
View File
@@ -1,14 +1,16 @@
import React from 'react';
import { Box, VStack } from '@chakra-ui/react';
import { Box, VStack, Center } from '@chakra-ui/react';
const RightBar: React.FC = () => {
return (
<Box float="right" w="20%" h="max">
<VStack align="left">
<Box>Number of slow queries: 3</Box>
<Box>Most active resource: essentialmode</Box>
<Box>Total number of queries: 732</Box>
</VStack>
<Box float="right" w="20%" h="max" p="1.2vh">
<Center>
<VStack align="left">
<Box>Number of slow queries: 3</Box>
<Box>Most active resource: essentialmode</Box>
<Box>Total number of queries: 732</Box>
</VStack>
</Center>
</Box>
);
};