style: streamline draft/published badge across recording card and admin table

- Replace custom inline span+getStatusColor with Badge component in recording card
- Align admin recordings table badge to same style (outline, green/yellow)
- Use i18n label in admin table instead of raw status string
- Remove unused cn import and getStatusColor helper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 18:43:18 +01:00
parent 3a8fa7d8ce
commit 66179d7ba8
2 changed files with 13 additions and 16 deletions

View File

@@ -131,10 +131,12 @@
<td class="px-4 py-3 hidden sm:table-cell">
<div class="flex gap-1">
<Badge
variant={recording.status === "published" ? "default" : "outline"}
class={recording.status === "draft" ? "text-muted-foreground" : ""}
variant="outline"
class={recording.status === "published"
? "text-green-600 border-green-500/40 bg-green-500/10"
: "text-yellow-600 border-yellow-500/40 bg-yellow-500/10"}
>
{recording.status}
{$_(`recording_card.status_${recording.status}`)}
</Badge>
{#if recording.public}
<Badge variant="outline" class="text-blue-600 border-blue-500/40 bg-blue-500/10"