Show a sex symbol after the name on the person page
A blue ♂ (male) or pink ♀ (female) symbol now follows the person's name in the detail header, using the same gender tints as the tree cards. Nothing shows when sex is unknown. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -686,7 +686,19 @@ export default function PersonDetailPage() {
|
|||||||
) : (
|
) : (
|
||||||
<div className="flex flex-wrap items-center justify-between gap-2">
|
<div className="flex flex-wrap items-center justify-between gap-2">
|
||||||
<h1 className="flex flex-wrap items-center gap-3 text-3xl font-semibold">
|
<h1 className="flex flex-wrap items-center gap-3 text-3xl font-semibold">
|
||||||
{person.primary_name ?? "Unnamed person"}
|
<span className="inline-flex items-center gap-2">
|
||||||
|
{person.primary_name ?? "Unnamed person"}
|
||||||
|
{person.gender === "male" && (
|
||||||
|
<span title="Male" aria-label="Male" style={{ color: "rgb(120, 159, 172)" }}>
|
||||||
|
♂
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
{person.gender === "female" && (
|
||||||
|
<span title="Female" aria-label="Female" style={{ color: "rgb(196, 138, 146)" }}>
|
||||||
|
♀
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
{isSelf && (
|
{isSelf && (
|
||||||
<span className="rounded-full bg-bronze/15 px-2.5 py-1 text-xs font-medium text-bronze">
|
<span className="rounded-full bg-bronze/15 px-2.5 py-1 text-xs font-medium text-bronze">
|
||||||
This is you
|
This is you
|
||||||
|
|||||||
Reference in New Issue
Block a user