Skip to content

Commit 09e462a

Browse files
authoredand pushed
Merge pull request #37 from jamesadevine/copilot/fix-profile-picture-issues
Preserve profile photo proportions and sharpness
2 parents 6c2ddf6 + 5f53843 commit 09e462a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/pages/index.astro‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const recentPosts = allPosts
2929
<Image
3030
src={profile}
3131
alt="James Devine's headshot. A middle aged white man with short brown hair smiling at the camera. He is wearing a blue shirt and a red hoodie."
32-
width="150"
33-
height="150"
32+
width="300"
33+
height="344"
3434
loading="eager"
3535
class="profile-img"
3636
/>
@@ -180,6 +180,8 @@ const recentPosts = allPosts
180180
font-size: 1.2em;
181181
}
182182
.profile-img {
183+
width: 150px;
184+
height: auto;
183185
border-radius: 50%;
184186
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
185187
border: 3px solid var(--accent, #6c63ff);

0 commit comments

Comments
 (0)