Skip to content

Commit a46e89f

Browse files
committed
Fix committee profile pics warping
1 parent 92e92d4 commit a46e89f

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

client/src/pages/about.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ export default function AboutPage() {
6161

6262
function committeeImage(profilePic: string) {
6363
return (
64-
<Image
65-
src={profilePic === null ? "/landing_placeholder.png" : profilePic}
66-
alt="/landing_placeholder.png"
67-
width={132}
68-
height={140}
69-
className="h-[8.75rem] w-[8.25rem]"
70-
/>
64+
<div className="relative h-[8.75rem] w-[8.25rem] overflow-hidden">
65+
<Image
66+
src={profilePic === null ? "/landing_placeholder.png" : profilePic}
67+
alt="/landing_placeholder.png"
68+
fill
69+
className="object-cover object-center"
70+
/>
71+
</div>
7172
);
7273
}
7374

0 commit comments

Comments
 (0)