mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: fix project name overflow (#7575)
Fix overflow in long project names. Show ellipsis where it overflows. ![image](https://github.com/Unleash/unleash/assets/17786332/4723134b-b667-47ab-83e8-02cb3cda9093) ![image](https://github.com/Unleash/unleash/assets/17786332/7f4f0b5b-bc03-460d-8ba1-e0cda51e9a5c) ![image](https://github.com/Unleash/unleash/assets/17786332/8b6528f0-2ed8-4a26-9d22-42fa356583c8)
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