Skip to content

Commit

Permalink
fix: apply avatar sizing to the avatar component (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed May 14, 2024
1 parent 085b934 commit 000c882
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ const Avatar = ({
}: AvatarProps): JSX.Element | null => {
if (component === 'avatar') {
if (url) {
return <AvatarComponent id={id} alt={alt} src={url} />;
return (
<AvatarComponent
id={id}
alt={alt}
src={url}
sx={{ width: maxWidth, height: maxHeight }}
/>
);
} else {
if (isLoading) {
return (
Expand Down

0 comments on commit 000c882

Please sign in to comment.