feat(persons): show title in small-caps above display name in PersonCard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ let {
|
||||
lastName: string;
|
||||
displayName: string;
|
||||
personType?: string | null;
|
||||
title?: string | null;
|
||||
alias?: string | null;
|
||||
birthYear?: number | null;
|
||||
deathYear?: number | null;
|
||||
@@ -66,6 +67,15 @@ let {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Title (academic/honorific) — PERSON type only -->
|
||||
{#if person.personType === 'PERSON' && person.title}
|
||||
<p
|
||||
class="mb-0.5 text-center font-sans text-xs tracking-widest text-ink-3 [font-variant:small-caps]"
|
||||
>
|
||||
{person.title}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<!-- Name — centered, serif -->
|
||||
<h1 class="mb-1 text-center font-serif text-xl font-bold text-ink">
|
||||
{person.displayName}
|
||||
|
||||
Reference in New Issue
Block a user