Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions frontend/src/components/MetricsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ export default function MetricsPanel({ metrics, onCacheCleared, onOpenTraces }:

{/* Provider split bar */}
<div className="metric-card py-2 px-3">
<div className="flex items-center gap-3 mb-2 w-full overflow-hidden">
<div className="flex items-center justify-between gap-2 mb-2 w-full flex-wrap">
{Object.entries(providers).map(([label, { count, color, icon }]) => {
const pct = ((count / modelTotal) * 100);
return (
<div key={label} className="flex items-center gap-1 text-xs font-semibold min-w-0" style={{ color }}>
<span className="shrink-0">{icon}</span>
<span className="truncate">{label}</span>
<span className="shrink-0"><AnimatedNumber value={pct} format={(v) => Math.round(v) + "%"} /></span>
<div key={label} className="flex items-center gap-1 text-xs font-semibold whitespace-nowrap" style={{ color }}>
<span>{icon}</span>
<span>{label}</span>
<span><AnimatedNumber value={pct} format={(v) => Math.round(v) + "%"} /></span>
</div>
);
})}
Expand Down
Loading