Skip to content

Commit 065159b

Browse files
authored
dev officer image resizing (#876)
* dev officer image resizing made all dev team officer photos the same aspect ratio * removed commented out in-line style
1 parent 4618950 commit 065159b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

components/OfficerCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function Officer({
5656
>
5757
<div className={styles['officer-image-container']}>
5858
{/* eslint-disable-next-line @next/next/no-img-element */}
59-
<img src={photo} alt={alt} style={{ maxWidth: '100%' }} />
59+
<img src={photo} alt={alt} className={styles['dev-officer-image']} />
6060
</div>
6161
<div>
6262
<h3 className={styles.name}>{name}</h3>

styles/components/OfficerCard.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@
7777
justify-content: center;
7878
}
7979

80+
.dev-officer-image {
81+
width: 200px;
82+
height: 200px;
83+
object-fit: cover;
84+
}
85+
8086
.officer-image {
8187
border: 2px solid #EAEAEA;
8288
border-radius: 50%;

0 commit comments

Comments
 (0)