fix(frontend): limit avatar size

This commit is contained in:
Sam 2022-11-21 17:04:07 +01:00
parent 69e5082e89
commit 3aefe4fa88
2 changed files with 24 additions and 8 deletions

View file

@ -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>
);
}