style(usage): reorder stat cards and align overview rows to full width
This commit is contained in:
1 parent
07c6d79b81
commit
dfb7124796
2 files changed
+15
-16
No files matched your search
@@ -999,6 +999,21 @@ function OverviewView({ overview, range }: { overview: UsageOverview; range?: Pi
|
||||
canceled: compactNumber(overview.canceledCount),
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: t('usage.stat.tps'),
|
||||
value: overview.tpsSampleCount > 0 ? overview.tps.toFixed(1) : '—',
|
||||
meta: t('usage.stat.performanceMeta', {
|
||||
samples: compactNumber(overview.tpsSampleCount),
|
||||
rpm: overview.rpm.toFixed(2),
|
||||
latency: Math.round(overview.averageLatencyMs),
|
||||
}),
|
||||
metaTitle: t('usage.stat.performanceMetaTitle', {
|
||||
tps: overview.tpsSampleCount > 0 ? overview.tps.toFixed(1) : '—',
|
||||
samples: compactNumber(overview.tpsSampleCount),
|
||||
rpm: overview.rpm.toFixed(2),
|
||||
latency: Math.round(overview.averageLatencyMs),
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: t('usage.stat.tokens'),
|
||||
value: compactNumber(overview.totalTokens),
|
||||
@@ -1026,21 +1041,6 @@ function OverviewView({ overview, range }: { overview: UsageOverview; range?: Pi
|
||||
canceled: compactNumber(overview.canceledCount),
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: t('usage.stat.tps'),
|
||||
value: overview.tpsSampleCount > 0 ? overview.tps.toFixed(1) : '—',
|
||||
meta: t('usage.stat.performanceMeta', {
|
||||
samples: compactNumber(overview.tpsSampleCount),
|
||||
rpm: overview.rpm.toFixed(2),
|
||||
latency: Math.round(overview.averageLatencyMs),
|
||||
}),
|
||||
metaTitle: t('usage.stat.performanceMetaTitle', {
|
||||
tps: overview.tpsSampleCount > 0 ? overview.tps.toFixed(1) : '—',
|
||||
samples: compactNumber(overview.tpsSampleCount),
|
||||
rpm: overview.rpm.toFixed(2),
|
||||
latency: Math.round(overview.averageLatencyMs),
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: t('usage.stat.cacheHitRate'),
|
||||
value: `${(overview.cacheHitRate * 100).toFixed(1)}%`,
|
||||
|
||||
@@ -8433,7 +8433,6 @@ textarea:focus-visible {
|
||||
align-items: stretch;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
.usage-stat-grid {
|
||||
|
||||
Reference in new issue
Block a user