Skip to content

Commit fcf1dd4

Browse files
os-zhuangclaude
andauthored
polish(dashboard): tabular-nums + tighter tracking on metric value (#1817)
KPI/metric values are numbers — render them with `tabular-nums` (so digits align across a row of tiles) and `tracking-tight` for a more deliberate, "designed" look. Pure styling on MetricWidget; no behavior change. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9a0b053 commit fcf1dd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-dashboard/src/MetricWidget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export const MetricWidget = ({
257257
</div>
258258
) : (
259259
<>
260-
<div className="text-2xl font-bold truncate">{displayValue}</div>
260+
<div className="text-2xl font-bold tabular-nums tracking-tight truncate">{displayValue}</div>
261261
{(trend || description) && (
262262
<div className="text-xs text-muted-foreground mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 min-w-0">
263263
{trend && (

0 commit comments

Comments
 (0)