Skip to content

Commit

Permalink
feat: overflow email when it's too long (#5801)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier committed Jan 9, 2024
1 parent 1333ea7 commit 72f84f0
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -38,6 +38,10 @@ const StyledUserAvatar = styled(UserAvatar)(({ theme }) => ({

const StyledSubtitle = styled(Typography)(({ theme }) => ({
color: theme.palette.text.secondary,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
maxWidth: theme.spacing(35),
}));

const StyledLink = styled(Link<typeof RouterLink | 'a'>)(({ theme }) => ({
Expand Down Expand Up @@ -94,7 +98,7 @@ export const UserProfileContent = ({
<Typography>
{profile.name || profile.username}
</Typography>
<StyledSubtitle variant='body2'>
<StyledSubtitle variant='body2' title={profile.email}>
{profile.email}
</StyledSubtitle>
</div>
Expand Down

0 comments on commit 72f84f0

Please sign in to comment.