Skip to content

Commit

Permalink
fix(nui): Set resource name overflow to ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 6, 2022
1 parent 1948c78 commit cbf47dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ui/src/components/NavBars/LeftBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Resource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Resource: React.FC = () => {
accessor: 'query',
},
{
Header: 'Execution time',
Header: 'Execution time (ms)',
accessor: 'executionTime',
},
],
Expand Down

0 comments on commit cbf47dc

Please sign in to comment.