Keep the avatar round

The img's height="300" attribute beat aspect-ratio, so with the width
capped at 150px the avatar rendered as a 150x300 ellipse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mtpsandClaude Opus 5.5 committed 2026-10-20 13:30:30 +00:00
1 parent a1dd42f710
commit e666e4670e
1 file changed
+2
+2
View File
@@ -81,6 +81,8 @@ const photos = await getPhotos();
}
.avatar {
width: clamp(77px, 20vw, 150px);
/* override the img's height="300" so aspect-ratio keeps it round */
height: auto;
aspect-ratio: 1;
border: 3px solid var(--bg);
border-radius: 50%;