Skip to content

Commit

Permalink
Smaller avatar images
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Nov 13, 2024
1 parent 68cc3e9 commit a0686ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/frontpage/lib/components/user-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ async function AvatarImage({
return (
// eslint-disable-next-line @next/next/no-img-element
<img
src={profile.avatar}
src={
sizeVariant === "large"
? profile.avatar
: profile.avatar.replace("/avatar/", "/avatar_thumbnail/")
}
alt=""
width={size}
height={size}
Expand Down

0 comments on commit a0686ef

Please sign in to comment.