mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-30 20:44:31 +00:00
chore: generate
This commit is contained in:
parent
aa22cf841d
commit
494b55a2a7
2 changed files with 4 additions and 7 deletions
|
|
@ -2368,7 +2368,9 @@
|
|||
0 2px 6px #00000052;
|
||||
}
|
||||
|
||||
[data-page="stats"][data-theme="dark"] [data-component="leader-card"][data-active="true"] [data-slot="leader-watermark"],
|
||||
[data-page="stats"][data-theme="dark"]
|
||||
[data-component="leader-card"][data-active="true"]
|
||||
[data-slot="leader-watermark"],
|
||||
[data-page="stats"][data-theme="dark"] [data-component="leader-card"]:hover [data-slot="leader-watermark"],
|
||||
[data-page="stats"][data-theme="dark"] [data-component="leader-card"]:focus-visible [data-slot="leader-watermark"],
|
||||
:root[data-stats-theme="dark"]
|
||||
|
|
|
|||
|
|
@ -772,12 +772,7 @@ function stackedTopModelsSegments(point: UsagePoint) {
|
|||
.sort((a, b) => a.segment.value - b.segment.value || a.index - b.index)
|
||||
}
|
||||
|
||||
function getTopModelsSegmentColor(
|
||||
model: string,
|
||||
index: number,
|
||||
muted: boolean,
|
||||
activeModel: string | undefined,
|
||||
) {
|
||||
function getTopModelsSegmentColor(model: string, index: number, muted: boolean, activeModel: string | undefined) {
|
||||
if (activeModel !== undefined)
|
||||
return activeModel === model ? (usageColors[index] ?? "var(--stats-text)") : "var(--stats-layer-2)"
|
||||
if (muted) return "var(--stats-layer-2)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue