Fix likes batch route order, add profile links to all usernames
This commit is contained in:
@@ -137,7 +137,7 @@ export default function CatPage() {
|
||||
|
||||
{cat.caption && (
|
||||
<p className="text-sm leading-[1.5]">
|
||||
<span className="font-semibold mr-1">@{cat.username}</span>
|
||||
<Link to={`/profile/${cat.user_id}`} className="font-semibold mr-1 hover:text-[var(--accent)] transition-colors">@{cat.username}</Link>
|
||||
{cat.caption}
|
||||
</p>
|
||||
)}
|
||||
@@ -165,10 +165,12 @@ export default function CatPage() {
|
||||
</p>
|
||||
{comments.map(c => (
|
||||
<div key={c.id} className="flex items-start gap-2.5 group">
|
||||
<UserAvatar avatarUrl={undefined} username={c.username} className="h-7 w-7" fallbackClassName="text-[9px] avatar-colored bg-[var(--fg-tertiary)]" />
|
||||
<Link to={`/profile/${c.user_id}`}>
|
||||
<UserAvatar avatarUrl={undefined} username={c.username} className="h-7 w-7" fallbackClassName="text-[9px] avatar-colored bg-[var(--fg-tertiary)]" />
|
||||
</Link>
|
||||
<div className="flex-1 min-w-0">
|
||||
<p className="text-sm leading-[1.5]">
|
||||
<span className="font-semibold mr-1">@{c.username}</span>
|
||||
<Link to={`/profile/${c.user_id}`} className="font-semibold mr-1 hover:text-[var(--accent)] transition-colors">@{c.username}</Link>
|
||||
{c.text}
|
||||
</p>
|
||||
<p className="text-[10px] text-[var(--fg-tertiary)] mt-0.5">
|
||||
|
||||
Reference in New Issue
Block a user