fix(dashboard): 模型用量统计图表固定最大高度 360px 并滚动,与右侧模型用量表一致

This commit is contained in:
KimiSwitch Dev committed 2026-09-10 11:09:06 +08:00
1 parent 9ce1ed65b0
commit 36e64a1f72
1 file changed
+1 -1
@@ -25,7 +25,7 @@ export function ModelTotalsChart({ rows }: ModelTotalsChartProps) {
const max = Math.max(...rows.map((m) => m.totalTokens || 0), 1);
return (
<div className="flex h-full flex-col gap-1 overflow-y-auto">
<div className="flex max-h-[360px] flex-col gap-1 overflow-y-auto">
{rows.map((m, i) => {
const color = i < 10 ? modelColor(i) : "#6b7280";
const name = m.isSecondary ? t("subagentModel") : m.modelDisplay || m.model;