Skip to content

Commit 7d58f47

Browse files
authored
Crops non 1:1 officer images to prevent stretching (#727)
1 parent 921c583 commit 7d58f47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/Officers/OfficerCard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function Officer({
2828
alt={alt}
2929
width={130}
3030
height={130}
31+
objectFit="cover" // Crop to fit the aspect ratio
3132
unoptimized={true}
3233
/>
3334
</div>

0 commit comments

Comments
 (0)