mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-06 01:15:28 +02:00
chore: fix project name overflow (#7575)
Fix overflow in long project names. Show ellipsis where it overflows.   
This commit is contained in:
parent
7b7c78fe5d
commit
d7adee3f64
@ -3,12 +3,12 @@ import { FavoriteIconButton } from 'component/common/FavoriteIconButton/Favorite
|
||||
|
||||
export const StyledDiv = styled('div')(() => ({
|
||||
display: 'flex',
|
||||
overflow: 'hidden',
|
||||
}));
|
||||
|
||||
export const StyledTopRow = styled('div')(() => ({
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'space-between',
|
||||
display: 'grid',
|
||||
gridTemplateColumns: '1fr auto',
|
||||
width: '100%',
|
||||
}));
|
||||
|
||||
@ -21,6 +21,7 @@ export const StyledName = styled('span')(({ theme }) => ({
|
||||
fontSize: theme.typography.h1.fontSize,
|
||||
textOverflow: 'ellipsis',
|
||||
whiteSpace: 'nowrap',
|
||||
overflow: 'hidden',
|
||||
}));
|
||||
|
||||
export const StyledTitle = styled('span')(({ theme }) => ({
|
||||
@ -60,6 +61,7 @@ export const StyledProjectTitle = styled('span')(({ theme }) => ({
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
gap: theme.spacing(2),
|
||||
overflow: 'hidden',
|
||||
}));
|
||||
|
||||
export const StyledSeparator = styled('div')(({ theme }) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user