fix(ui): prevent usage bars from overflowing card border in grid view (#2064)

This commit is contained in:
Sven van Ginkel
2026-08-14 01:18:43 +02:00
committed by GitHub
parent c3a432101b
commit e380ab6917
2 changed files with 3 additions and 3 deletions

View File

@@ -470,7 +470,7 @@ function TableCellWithMeter(info: CellContext<SystemRecord, unknown>) {
STATUS_COLORS.down
)
return (
<div className="flex gap-2 items-center tabular-nums tracking-tight w-full">
<div className="flex gap-2 items-center tabular-nums tracking-tight w-full min-w-0">
<span className="min-w-8 shrink-0">{decimalString(val, val >= 10 ? 1 : 2)}%</span>
<span className="flex-1 min-w-8 grid bg-muted h-[1em] rounded-sm overflow-hidden">
<span className={meterClass} style={{ width: `${val}%` }}></span>