feat(topbar): make PersonChip a link to the person detail page

Consistent with the overflow pill popup which already linked to persons.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-02 11:40:18 +02:00
parent 2e6366faf7
commit 01ba0d4121

View File

@@ -19,8 +19,9 @@ const initials = $derived(
);
</script>
<span
class="inline-flex shrink-0 items-center gap-1.5 rounded-full border border-line bg-muted px-2 py-0.5"
<a
href="/persons/{person.id}"
class="inline-flex shrink-0 items-center gap-1.5 rounded-full border border-line bg-muted px-2 py-0.5 hover:border-primary hover:bg-surface focus-visible:ring-2 focus-visible:ring-primary"
>
<span
class="flex h-[25px] w-[25px] shrink-0 items-center justify-center rounded-full text-[13px] font-bold text-white"
@@ -30,4 +31,4 @@ const initials = $derived(
{initials}
</span>
<span class="text-[14px] font-semibold text-ink">{displayName}</span>
</span>
</a>