Skip to content

Commit 9bb783b

Browse files
committed
Resize user thumbnail in PostCard
1 parent 9251d1f commit 9bb783b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/common/PostCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ function PostCard({ post }: PostCardProps) {
6464
<Footer>
6565
<Link className="userinfo" to={`/@${post.user.username}`}>
6666
<img
67-
src={post.user.profile.thumbnail || userThumbnail}
67+
src={optimizeImage(
68+
post.user.profile.thumbnail || userThumbnail,
69+
120,
70+
)}
6871
alt={`user thumbnail of ${post.user.username}`}
6972
/>
7073
<span>

0 commit comments

Comments
 (0)