mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
feat: overflow email when it's too long (#5801)
## About the changes For long emails we want to  
This commit is contained in:
parent
1333ea7d63
commit
72f84f0381
@ -38,6 +38,10 @@ const StyledUserAvatar = styled(UserAvatar)(({ theme }) => ({
|
|||||||
|
|
||||||
const StyledSubtitle = styled(Typography)(({ theme }) => ({
|
const StyledSubtitle = styled(Typography)(({ theme }) => ({
|
||||||
color: theme.palette.text.secondary,
|
color: theme.palette.text.secondary,
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
maxWidth: theme.spacing(35),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledLink = styled(Link<typeof RouterLink | 'a'>)(({ theme }) => ({
|
const StyledLink = styled(Link<typeof RouterLink | 'a'>)(({ theme }) => ({
|
||||||
@ -94,7 +98,7 @@ export const UserProfileContent = ({
|
|||||||
<Typography>
|
<Typography>
|
||||||
{profile.name || profile.username}
|
{profile.name || profile.username}
|
||||||
</Typography>
|
</Typography>
|
||||||
<StyledSubtitle variant='body2'>
|
<StyledSubtitle variant='body2' title={profile.email}>
|
||||||
{profile.email}
|
{profile.email}
|
||||||
</StyledSubtitle>
|
</StyledSubtitle>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user