Merge pull request #699 from chandiwalaaadhar/fix/pikachu-profile-image-uncontrolled-size

Fix - Pikachu User Image upload, uncontrolled Image Size
This commit is contained in:
Amruth Pillai 2022-03-15 16:25:19 +01:00 committed by GitHub
commit ee1017aa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -17,9 +17,13 @@ export const MastheadSidebar: React.FC = () => {
return (
<div className="col-span-2 grid justify-items-left gap-4">
{photo.visible && !isEmpty(photo.url) && (
<div className="relative aspect-square h-full w-full">
<img alt={name} src={photo.url} className={getPhotoClassNames(photo.filters)} />
</div>
<img
alt={name}
src={photo.url}
width={photo.filters.size}
height={photo.filters.size}
className={getPhotoClassNames(photo.filters)}
/>
)}
<div className="flex flex-col gap-2">