Skip to content

Commit

Permalink
Fix small avatar when no image
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jul 29, 2024
1 parent 8f519a3 commit 3fce842
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/crm/src/contacts/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export const Avatar = (props: {
return (
<MuiAvatar
src={record.avatar ?? undefined}
sx={{ width: props.width, height: props.height }}
sx={{
width: props.width,
height: props.height,
fontSize: props.height ? '0.6rem' : undefined,
}}
>
{record.first_name.charAt(0)}
{record.last_name.charAt(0)}
Expand Down

0 comments on commit 3fce842

Please sign in to comment.