fix(frontend): add instance badge to remote author movie diary cards

This commit is contained in:
2026-05-29 01:42:43 +02:00
parent 4db7194838
commit b14b8592a2

View File

@@ -65,9 +65,14 @@ export function MovieCard({ meta, author, createdAt }: MovieCardProps) {
<div className="flex flex-col min-w-0">
<span className="font-bold truncate">{author.displayName ?? author.username}</span>
{!author.local && (
<span className="text-xs text-muted-foreground/70 truncate">
{author.username.startsWith("@") ? author.username : `@${author.username}`}
</span>
<div className="flex items-center gap-1.5 min-w-0">
<span className="text-xs text-muted-foreground/70 truncate">
{author.username.startsWith("@") ? author.username : `@${author.username}`}
</span>
<span className="text-[10px] font-medium px-2 py-0.5 rounded-full bg-blue-500/10 border border-blue-500/20 text-blue-500 shrink-0">
{author.username.split("@").filter(Boolean).at(-1)}
</span>
</div>
)}
<time
dateTime={createdAt.toISOString()}