fix(nui): Set resource name overflow to ellipsis

This commit is contained in:
Luke committed 2022-01-06 12:22:43 +01:00
1 parent 1948c783e7
commit cbf47dc556
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -16,7 +16,13 @@ const LeftBar: React.FC = () => {
<VStack align="left">
{initData.resources.map((resource, index) => (
<Link to={resource} key={`${resource}-${index}`}>
<Box _hover={{ transform: 'scale(1.1)', color: 'white' }} color="grey">
<Box
_hover={{ transform: 'scale(1.1)', color: 'white' }}
color="grey"
textOverflow="ellipsis"
overflow="hidden"
whiteSpace="nowrap"
>
{resource}
</Box>
</Link>
+1 -1
View File
@@ -56,7 +56,7 @@ const Resource: React.FC = () => {
accessor: 'query',
},
{
Header: 'Execution time',
Header: 'Execution time (ms)',
accessor: 'executionTime',
},
],