Skip to content

Commit 647f910

Browse files
committed
fix(ui): force model usage labels to single line with flex-nowrap and shrink-0
1 parent 296485f commit 647f910

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/MetricsPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ export default function MetricsPanel({ metrics, onCacheCleared, onOpenTraces }:
266266

267267
{/* Provider split bar */}
268268
<div className="metric-card py-2 px-3">
269-
<div className="flex items-center gap-3 mb-2 overflow-hidden">
269+
<div className="flex items-center gap-2 mb-2 flex-nowrap overflow-hidden">
270270
{Object.entries(providers).map(([label, { count, color, icon }]) => {
271271
const pct = ((count / modelTotal) * 100);
272272
return (
273-
<span key={label} className="flex items-center gap-1 text-xs font-semibold" style={{ color }}>
273+
<span key={label} className="flex items-center gap-1 text-xs font-semibold shrink-0 whitespace-nowrap" style={{ color }}>
274274
{icon} {label} <AnimatedNumber value={pct} format={(v) => Math.round(v) + "%"} />
275275
</span>
276276
);

0 commit comments

Comments
 (0)