fix(frontend): limit avatar size
This commit is contained in:
parent
69e5082e89
commit
3aefe4fa88
2 changed files with 24 additions and 8 deletions
|
@ -23,9 +23,11 @@ export default function FallbackImage({ urls, alt, className }: Props) {
|
|||
} else {
|
||||
contentType = "application/octet-stream";
|
||||
}
|
||||
return <source key={key} srcSet={url} type={contentType} />;
|
||||
return (
|
||||
<source width={200} key={key} srcSet={url} type={contentType} />
|
||||
);
|
||||
})}
|
||||
<img src={fallbackUrl} alt={alt} className={className} />
|
||||
<img width={200} src={fallbackUrl} alt={alt} className={className} />
|
||||
</picture>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue