Skip to content

Commit

Permalink
refactor: use 70x70 avatars instead of the default 300x300
Browse files Browse the repository at this point in the history
  • Loading branch information
6lr61 committed Sep 19, 2024
1 parent 4a797bc commit 858777e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ProfilePicture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export default function ProfilePicture({
return (
<article className="size-14 rounded-xl overflow-hidden">
{userData.data?.profile_image_url ? (
<img className="object-fill" src={userData.data.profile_image_url} />
<img
className="object-fill"
src={userData.data.profile_image_url.replace("300x300", "70x70")}
/>
) : (
<div className="bg-slate-600 size-full"></div>
)}
Expand Down

0 comments on commit 858777e

Please sign in to comment.