mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 06:28:53 +00:00
refactor(nui): Layout improvements
This commit is contained in:
1 parent
ed03361f61
commit
2c15418011
5 files changed
+35
-12
No files matched your search
@@ -29,11 +29,13 @@ const LeftBar: React.FC = () => {
|
||||
});
|
||||
|
||||
return (
|
||||
<Box p="1.2vh" fontSize="1.5vh" float="left" maxWidth="13vh">
|
||||
<Box p="1.2vh" fontSize="1.5vh" float="left" w="10%" height="55vh" overflowY="scroll">
|
||||
<VStack align="left">
|
||||
{initData.resources.map((resource, index) => (
|
||||
<Link to={resource} key={`${resource}-${index}`}>
|
||||
<Box _hover={{ transform: 'scale(1.1)' }}>{resource}</Box>
|
||||
<Box _hover={{ transform: 'scale(1.1)', color: 'white' }} color="grey">
|
||||
{resource}
|
||||
</Box>
|
||||
</Link>
|
||||
))}
|
||||
</VStack>
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user