mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 02:14:50 +10:00
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:
@@ -17,9 +17,13 @@ export const MastheadSidebar: React.FC = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="col-span-2 grid justify-items-left gap-4">
|
<div className="col-span-2 grid justify-items-left gap-4">
|
||||||
{photo.visible && !isEmpty(photo.url) && (
|
{photo.visible && !isEmpty(photo.url) && (
|
||||||
<div className="relative aspect-square h-full w-full">
|
<img
|
||||||
<img alt={name} src={photo.url} className={getPhotoClassNames(photo.filters)} />
|
alt={name}
|
||||||
</div>
|
src={photo.url}
|
||||||
|
width={photo.filters.size}
|
||||||
|
height={photo.filters.size}
|
||||||
|
className={getPhotoClassNames(photo.filters)}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user