fix: feed card follow ui

This commit is contained in:
gosangam
2026-06-18 00:21:06 +05:30
parent 071eb4d58a
commit 84cb273941
4 changed files with 59 additions and 19 deletions
+19 -5
View File
@@ -71,11 +71,25 @@ export function PostCard({
show (delete for owners, block/report for everyone else), so
a view with nothing to expose simply hides the dot. */}
<header className="flex items-center gap-3 mb-4">
<UserAvatar
src={post.author_avatar_url}
name={authorName}
className="size-9"
/>
{authorHandle ? (
<Link
href={`/u/${authorHandle}`}
aria-label={`View ${authorName}'s profile`}
className="shrink-0"
>
<UserAvatar
src={post.author_avatar_url}
name={authorName}
className="size-9"
/>
</Link>
) : (
<UserAvatar
src={post.author_avatar_url}
name={authorName}
className="size-9"
/>
)}
<div className="min-w-0 flex-1">
{authorHandle ? (
<Link