feat(hero): apply mono + tabular numerals to hero stats band
成果带数字改 font-mono + tabular-nums,强化「数据终端」语义(Stripe 惯例) HeroStatsBand 即 Hero 真实数据面,无需臆造新浮层 门禁:type-check 0 / eslint 0 error(19 条既有 any warning)/ 单测 36 passed
This commit is contained in:
@@ -286,7 +286,7 @@ function HeroStatsBand({ stats }: { stats?: Record<string, any>[] }) {
|
||||
{displayStats.map((stat, i) => (
|
||||
<div key={i} className="flex items-baseline gap-2">
|
||||
<span className={cn(
|
||||
'text-3xl sm:text-4xl md:text-5xl font-bold tabular-nums leading-none',
|
||||
'text-3xl sm:text-4xl md:text-5xl font-mono font-bold tabular-nums leading-none',
|
||||
i === 0 ? 'text-brand' : 'text-ink'
|
||||
)}>
|
||||
{stat.value}
|
||||
|
||||
Reference in New Issue
Block a user