1
0
Fork 0

fix(intelligence): keep chain chart node text from being clipped at fit zoom

The rank line had no explicit line-height utility, so it inherited the
body 2rem value; in the fixed-height flex card that squeezed the name
span until its glyphs rendered clipped above the card edge. Make both
rows shrink-proof and give the rank row an explicit tight leading.
This commit is contained in:
Jason Fraley 2026-12-01 10:35:45 -05:00
parent bff6a7a908
commit fe60af56dd

View file

@ -76,13 +76,13 @@ function ChainPersonNodeCard({ data, selected }: NodeProps<PersonNodeModel>) {
].join(" ")} ].join(" ")}
> >
<span <span
className={`truncate text-sm leading-snug font-semibold ${ className={`block min-w-0 shrink-0 truncate text-sm leading-tight font-semibold ${
data.unlinked ? "text-white/60" : "text-white" data.unlinked ? "text-white" : "text-white"
}`} }`}
> >
{data.name} {data.name}
</span> </span>
<span className="font-mono text-[8px] uppercase tracking-widest text-white/45"> <span className="mt-1 block shrink-0 font-mono text-[9px] leading-none tracking-widest text-white/45 uppercase">
{data.rankLabel ?? "UNRANKED"} {data.rankLabel ?? "UNRANKED"}
</span> </span>
{data.connectable && ( {data.connectable && (