mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +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')(() => ({
|
export const StyledDiv = styled('div')(() => ({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
overflow: 'hidden',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const StyledTopRow = styled('div')(() => ({
|
export const StyledTopRow = styled('div')(() => ({
|
||||||
display: 'flex',
|
display: 'grid',
|
||||||
flexDirection: 'row',
|
gridTemplateColumns: '1fr auto',
|
||||||
justifyContent: 'space-between',
|
|
||||||
width: '100%',
|
width: '100%',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -21,6 +21,7 @@ export const StyledName = styled('span')(({ theme }) => ({
|
|||||||
fontSize: theme.typography.h1.fontSize,
|
fontSize: theme.typography.h1.fontSize,
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
whiteSpace: 'nowrap',
|
whiteSpace: 'nowrap',
|
||||||
|
overflow: 'hidden',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const StyledTitle = styled('span')(({ theme }) => ({
|
export const StyledTitle = styled('span')(({ theme }) => ({
|
||||||
@ -60,6 +61,7 @@ export const StyledProjectTitle = styled('span')(({ theme }) => ({
|
|||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
gap: theme.spacing(2),
|
gap: theme.spacing(2),
|
||||||
|
overflow: 'hidden',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const StyledSeparator = styled('div')(({ theme }) => ({
|
export const StyledSeparator = styled('div')(({ theme }) => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user