mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): restore IDE mount compatibility, add composer dock mode, and refine chart tooltips
This commit is contained in:
@@ -52,10 +52,10 @@ input {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
max-width: none;
|
||||
height: 100dvh;
|
||||
max-height: 100dvh;
|
||||
margin: 0 auto;
|
||||
margin: 0;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
gap: var(--space-3);
|
||||
overflow: hidden;
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.steps-inline-scope-select .select-menu {
|
||||
.steps-inline-scope-select .select-menu,
|
||||
.steps-inline-model-select .select-menu {
|
||||
left: auto;
|
||||
right: 0;
|
||||
min-width: 220px;
|
||||
@@ -212,6 +213,10 @@
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.custom-select[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.select-trigger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -296,6 +301,41 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.select-option-meta {
|
||||
font-size: 11px;
|
||||
flex-shrink: 0;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.select-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid var(--border-strong);
|
||||
background: transparent;
|
||||
color: var(--text-inverse);
|
||||
flex-shrink: 0;
|
||||
transition:
|
||||
background-color var(--dur-instant) var(--ease-fast),
|
||||
border-color var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.select-checkbox[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.select-checkbox.is-checked {
|
||||
background: var(--accent-primary);
|
||||
border-color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.select-checkbox .svg-icon {
|
||||
stroke-width: 2.4;
|
||||
}
|
||||
|
||||
/* --- 4. 定制步进数字框 (Bespoke Custom Number Input,零原生 <input type="number">) --- */
|
||||
.number-input {
|
||||
display: inline-flex;
|
||||
|
||||
@@ -32,6 +32,44 @@
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="composer"]) {
|
||||
position: relative;
|
||||
height: 26px;
|
||||
gap: 4px;
|
||||
margin-right: 4px;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="composer"][data-composer-push="1"]) {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="composer"]) .wm-multi-btn,
|
||||
:host(.wm-capsule-host[data-dock="composer"]) .wm-capsule-btn {
|
||||
height: 26px;
|
||||
border-radius: var(--radius-pill);
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="composer"]) .wm-multi-btn {
|
||||
padding: 0 7px;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="composer"]) .wm-capsule-btn {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="ide-titlebar"]) {
|
||||
position: relative;
|
||||
margin-left: auto;
|
||||
margin-right: 8px;
|
||||
z-index: 2501;
|
||||
--text-primary: var(
|
||||
--vscode-titleBar-activeForeground,
|
||||
var(--foreground, var(--vscode-foreground, hsl(215 22% 15%)))
|
||||
);
|
||||
--text-secondary: color-mix(in srgb, var(--text-primary) 78%, transparent);
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-dock="fixed"]) {
|
||||
position: fixed;
|
||||
top: 6px;
|
||||
@@ -449,11 +487,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes wm-popover-in-up {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(3px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.wm-popover-panel {
|
||||
position: fixed;
|
||||
top: 42px;
|
||||
left: 12px;
|
||||
width: min(492px, calc(100vw - 24px));
|
||||
width: min(522px, calc(100vw - 24px));
|
||||
height: min(588px, calc(100vh - 54px));
|
||||
max-height: calc(100vh - 54px);
|
||||
display: flex;
|
||||
@@ -481,7 +530,7 @@
|
||||
position: fixed;
|
||||
top: 42px;
|
||||
left: 12px;
|
||||
width: min(492px, calc(100vw - 24px));
|
||||
width: min(522px, calc(100vw - 24px));
|
||||
max-height: calc(100vh - 54px);
|
||||
padding: var(--space-3) var(--space-4);
|
||||
display: flex;
|
||||
@@ -505,7 +554,7 @@
|
||||
position: fixed;
|
||||
top: 42px;
|
||||
left: 12px;
|
||||
width: min(484px, calc(100vw - 24px));
|
||||
width: min(464px, calc(100vw - 24px));
|
||||
max-height: calc(100vh - 54px);
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
@@ -526,6 +575,21 @@
|
||||
animation: wm-popover-in var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.wm-popover-panel.is-above {
|
||||
transform-origin: bottom right;
|
||||
animation-name: wm-popover-in-up;
|
||||
}
|
||||
|
||||
.wm-hover-tip.is-above {
|
||||
transform-origin: bottom right;
|
||||
animation-name: wm-popover-in-up;
|
||||
}
|
||||
|
||||
.wm-multi-panel.is-above {
|
||||
transform-origin: bottom left;
|
||||
animation-name: wm-popover-in-up;
|
||||
}
|
||||
|
||||
.wm-popover-panel.is-instant,
|
||||
.wm-hover-tip.is-instant,
|
||||
.wm-multi-panel.is-instant {
|
||||
|
||||
@@ -11,26 +11,48 @@
|
||||
--radius-sm: 4px;
|
||||
--radius-xs: 2px;
|
||||
|
||||
/* Host-Bridged Surfaces (Clean, zero-muddy-gray light mode & safe dark fallback) */
|
||||
--surface-bg: var(--background, hsl(0 0% 100%));
|
||||
--surface-panel: var(--card, var(--background, hsl(0 0% 100%)));
|
||||
/* Host-Bridged Surfaces (Antigravity 2.0 + Antigravity IDE --vscode-* + safe fallback) */
|
||||
--surface-bg: var(--background, var(--vscode-sideBar-background, var(--vscode-editor-background, hsl(0 0% 100%))));
|
||||
--surface-panel: var(
|
||||
--card,
|
||||
var(
|
||||
--background,
|
||||
var(--vscode-editorWidget-background, var(--vscode-sideBar-background, var(--vscode-editor-background, hsl(0 0% 100%))))
|
||||
)
|
||||
);
|
||||
--surface-subtle: color-mix(in srgb, var(--surface-panel) 97%, var(--text-primary) 3%);
|
||||
--surface-track: color-mix(in srgb, var(--border-hairline) 42%, var(--surface-panel));
|
||||
--surface-hover: color-mix(in srgb, var(--accent-primary) 6%, var(--surface-panel));
|
||||
--surface-active: color-mix(in srgb, var(--accent-primary) 12%, var(--surface-panel));
|
||||
|
||||
/* Crisp 1px Hairline Borders */
|
||||
--border-hairline: color-mix(in srgb, var(--border, hsl(214 18% 88%)) 82%, var(--surface-panel));
|
||||
--border-hairline: color-mix(
|
||||
in srgb,
|
||||
var(
|
||||
--border,
|
||||
var(
|
||||
--vscode-widget-border,
|
||||
var(
|
||||
--vscode-panel-border,
|
||||
var(--vscode-contrastBorder, color-mix(in srgb, var(--text-primary) 18%, var(--surface-panel)))
|
||||
)
|
||||
)
|
||||
) 82%,
|
||||
var(--surface-panel)
|
||||
);
|
||||
--border-strong: color-mix(in srgb, var(--border-hairline) 72%, var(--text-primary) 28%);
|
||||
|
||||
/* Typography Hierarchy */
|
||||
--text-primary: var(--foreground, hsl(215 22% 15%));
|
||||
--text-secondary: var(--muted-foreground, hsl(215 12% 44%));
|
||||
--text-primary: var(--foreground, var(--vscode-foreground, var(--vscode-editor-foreground, hsl(215 22% 15%))));
|
||||
--text-secondary: var(--muted-foreground, var(--vscode-descriptionForeground, hsl(215 12% 44%)));
|
||||
--text-muted: color-mix(in srgb, var(--text-secondary) 74%, var(--surface-panel) 26%);
|
||||
--text-inverse: var(--surface-panel);
|
||||
|
||||
/* Semantic Telemetry Accents */
|
||||
--accent-primary: var(--primary, hsl(217 82% 51%));
|
||||
--accent-primary: var(
|
||||
--primary,
|
||||
var(--vscode-textLink-foreground, var(--vscode-button-background, hsl(217 82% 51%)))
|
||||
);
|
||||
--accent-primary-soft: color-mix(in srgb, var(--accent-primary) 13%, transparent);
|
||||
--accent-primary-border: color-mix(in srgb, var(--accent-primary) 38%, var(--border-hairline));
|
||||
|
||||
@@ -43,7 +65,7 @@
|
||||
--metric-warn: hsl(34 86% 44%);
|
||||
--metric-warn-soft: color-mix(in srgb, var(--metric-warn) 15%, transparent);
|
||||
|
||||
--metric-danger: var(--destructive, hsl(0 74% 50%));
|
||||
--metric-danger: var(--destructive, var(--vscode-errorForeground, hsl(0 74% 50%)));
|
||||
|
||||
/* Context Window 10-Channel Palette */
|
||||
--ctx-assistant: hsl(217 82% 54%);
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
|
||||
.trend-svg {
|
||||
width: 100%;
|
||||
height: 118px;
|
||||
height: 120px;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
}
|
||||
@@ -304,9 +304,10 @@
|
||||
top: 0;
|
||||
left: var(--tip-x, 50%);
|
||||
transform: translateX(var(--tip-shift, -50%));
|
||||
min-width: 148px;
|
||||
max-width: 240px;
|
||||
padding: 5px 8px;
|
||||
width: max-content;
|
||||
min-width: 152px;
|
||||
max-width: min(300px, calc(100% - 8px));
|
||||
padding: 5px 9px;
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
@@ -322,7 +323,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
font-size: 10.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
@@ -331,42 +332,62 @@
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-tip-calls {
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
max-width: 190px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.trend-tip-main {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.trend-tip-tokens {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--accent-primary);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-tip-cost {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-tip-sub {
|
||||
font-size: 10px;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
padding-top: 2px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.trend-tooltip.is-hm-top {
|
||||
top: 0;
|
||||
bottom: auto;
|
||||
}
|
||||
|
||||
.trend-tooltip.is-hm-bottom {
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.trend-x-axis {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@@ -401,6 +422,177 @@
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* --- 4b. 类 GitHub 每日小格子热力图 (> 90 天自动启用,一格一天) --- */
|
||||
.trend-heatmap-stage {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding-top: 2px;
|
||||
width: 100%;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.trend-heatmap-body {
|
||||
--hm-weeks: 26;
|
||||
--hm-gap: 2px;
|
||||
--hm-cell: 9px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
@supports (width: 1cqi) {
|
||||
.trend-heatmap-body {
|
||||
--hm-cell: clamp(
|
||||
6.5px,
|
||||
calc((100cqi - 18px - (var(--hm-weeks) - 1) * var(--hm-gap)) / var(--hm-weeks)),
|
||||
18px
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
.trend-hm-weekdays {
|
||||
display: grid;
|
||||
grid-template-rows: 15px repeat(7, var(--hm-cell));
|
||||
row-gap: var(--hm-gap);
|
||||
width: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-hm-month-spacer {
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.trend-hm-wday {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
font-size: 9px;
|
||||
line-height: 1;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.trend-hm-scroll {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.trend-hm-track {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
gap: var(--hm-gap);
|
||||
min-width: max-content;
|
||||
}
|
||||
|
||||
.trend-hm-months {
|
||||
position: relative;
|
||||
height: 15px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.trend-hm-month {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: calc(var(--hm-col, 0) * (var(--hm-cell) + var(--hm-gap)));
|
||||
font-size: 9.5px;
|
||||
line-height: 14px;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.trend-hm-grid {
|
||||
display: grid;
|
||||
grid-template-rows: repeat(7, var(--hm-cell));
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: var(--hm-cell);
|
||||
gap: var(--hm-gap);
|
||||
}
|
||||
|
||||
.trend-hm-cell {
|
||||
width: var(--hm-cell);
|
||||
height: var(--hm-cell);
|
||||
border-radius: 2px;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
transition: transform var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.trend-hm-cell.is-pad {
|
||||
visibility: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.trend-hm-cell.lv-0,
|
||||
.trend-hm-swatch.lv-0 {
|
||||
background: color-mix(in srgb, var(--text-primary) 6.5%, var(--surface-panel));
|
||||
border: 1px solid color-mix(in srgb, var(--border-hairline) 55%, transparent);
|
||||
}
|
||||
|
||||
.trend-hm-cell.lv-1,
|
||||
.trend-hm-swatch.lv-1 {
|
||||
background: color-mix(in srgb, var(--ctx-cached) 24%, var(--surface-panel));
|
||||
}
|
||||
|
||||
.trend-hm-cell.lv-2,
|
||||
.trend-hm-swatch.lv-2 {
|
||||
background: color-mix(in srgb, var(--ctx-cached) 46%, var(--surface-panel));
|
||||
}
|
||||
|
||||
.trend-hm-cell.lv-3,
|
||||
.trend-hm-swatch.lv-3 {
|
||||
background: color-mix(in srgb, var(--ctx-cached) 70%, var(--surface-panel));
|
||||
}
|
||||
|
||||
.trend-hm-cell.lv-4,
|
||||
.trend-hm-swatch.lv-4 {
|
||||
background: color-mix(in srgb, var(--ctx-cached) 94%, var(--surface-panel));
|
||||
}
|
||||
|
||||
.trend-hm-cell.is-hovered {
|
||||
outline: 1.5px solid var(--text-primary);
|
||||
outline-offset: 0.5px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.trend-hm-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
.trend-hm-summary {
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.trend-hm-legend {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
flex-shrink: 0;
|
||||
font-size: 9.5px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.trend-hm-swatch {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* --- 5. 模型与数据来源明细行容器 (Popular Models & Sources Item Rows) --- */
|
||||
.cons-item-list {
|
||||
display: flex;
|
||||
@@ -423,6 +615,10 @@
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.cons-item-foot > .legend-left:last-child {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.cons-item-foot strong {
|
||||
color: var(--text-primary);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -53,6 +53,46 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 配额池窗口行头:标题 + 周期用量内联(窄栏自适应截断,零额外纵向行高) */
|
||||
.quota-win-head {
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.quota-win-left {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.quota-win-title {
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.quota-win-usage {
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 10.5px;
|
||||
font-weight: 400;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.quota-win-meta {
|
||||
font-size: 11px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* --- 2. 多任务实时运行卡片列表与 4 格测速指标矩阵 (Live Running Tasks List & 4-Cell Telemetry Matrix) --- */
|
||||
.live-activity-list {
|
||||
display: flex;
|
||||
|
||||
@@ -44,13 +44,13 @@
|
||||
|
||||
.data-table th:first-child,
|
||||
.data-table td:first-child {
|
||||
padding-left: 7px;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.data-table th:last-child,
|
||||
.data-table td:last-child {
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.data-table th {
|
||||
@@ -88,13 +88,15 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.steps-inline-scope-select {
|
||||
flex: 0 1 180px;
|
||||
.steps-inline-scope-select,
|
||||
.steps-inline-model-select {
|
||||
flex: 0 1 165px;
|
||||
min-width: 72px;
|
||||
max-width: 190px;
|
||||
max-width: 175px;
|
||||
}
|
||||
|
||||
.steps-inline-scope-select .select-trigger {
|
||||
.steps-inline-scope-select .select-trigger,
|
||||
.steps-inline-model-select .select-trigger {
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
gap: 4px;
|
||||
@@ -104,3 +106,473 @@
|
||||
border: 1px solid var(--border-hairline);
|
||||
background: var(--surface-subtle);
|
||||
}
|
||||
|
||||
/* --- 3. 按模型汇总分析视图:双趋势图与极简模型总览 (Models Analytics Pane) --- */
|
||||
.models-analytics-pane {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
padding: var(--space-3) 0 2px;
|
||||
}
|
||||
|
||||
.sstep-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-xs);
|
||||
}
|
||||
|
||||
.sstep-card-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sstep-card-title-group {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sstep-card-title {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sstep-card .seg-btn {
|
||||
padding: 2px 6px;
|
||||
font-size: 10.5px;
|
||||
}
|
||||
|
||||
.sstep-fit-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.sstep-fit-model-select {
|
||||
min-width: 96px;
|
||||
max-width: 176px;
|
||||
}
|
||||
|
||||
.sstep-fit-model-select .select-trigger {
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-size: 10.5px;
|
||||
border: 1px solid var(--border-hairline);
|
||||
background: var(--surface-subtle);
|
||||
}
|
||||
|
||||
.sstep-chart-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.sstep-plot-stage {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 4px;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.sstep-svg {
|
||||
width: 100%;
|
||||
height: 106px;
|
||||
display: block;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.sstep-fit-svg {
|
||||
height: 136px;
|
||||
}
|
||||
|
||||
.sstep-sci-grid line {
|
||||
stroke: var(--border-hairline);
|
||||
stroke-width: 0.9;
|
||||
stroke-dasharray: 2 3;
|
||||
}
|
||||
|
||||
.sstep-axis-spine {
|
||||
stroke: var(--border-strong);
|
||||
stroke-width: 1;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
|
||||
.sstep-axis-tick {
|
||||
stroke: var(--border-strong);
|
||||
stroke-width: 1;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
|
||||
.sstep-axis-label {
|
||||
fill: var(--text-muted);
|
||||
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
|
||||
font-size: 9.5px;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-axis-label.is-y-inline {
|
||||
paint-order: stroke;
|
||||
stroke: var(--surface-panel);
|
||||
stroke-width: 2.5px;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.sstep-line-card .trend-line {
|
||||
stroke: var(--sstep-accent, var(--ctx-cached));
|
||||
stroke-width: 1.9;
|
||||
}
|
||||
|
||||
.sstep-multi-area {
|
||||
fill: var(--sstep-series-color, var(--ctx-cached));
|
||||
fill-opacity: 0.08;
|
||||
stroke: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-series-single-dot {
|
||||
fill: var(--sstep-series-color, var(--ctx-cached));
|
||||
stroke: var(--surface-panel);
|
||||
stroke-width: 1.3;
|
||||
}
|
||||
|
||||
.sstep-svg .trend-hover-dot {
|
||||
stroke: var(--hover-dot-color, var(--sstep-accent, var(--accent-primary)));
|
||||
}
|
||||
|
||||
.sstep-line-card .trend-peak-pill {
|
||||
background: color-mix(in srgb, var(--sstep-accent, var(--ctx-cached)) 14%, var(--surface-panel));
|
||||
border-color: color-mix(in srgb, var(--sstep-accent, var(--ctx-cached)) 30%, var(--border-hairline));
|
||||
}
|
||||
|
||||
.sstep-node-dot {
|
||||
fill: var(--surface-panel);
|
||||
stroke: var(--dot-stroke, var(--sstep-accent, var(--ctx-cached)));
|
||||
stroke-width: 1.45;
|
||||
}
|
||||
|
||||
.sstep-node-dot.is-skipped {
|
||||
fill: transparent;
|
||||
stroke: var(--border-strong);
|
||||
stroke-width: 1;
|
||||
stroke-dasharray: 1.5 1.5;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.sstep-ci-band {
|
||||
fill: var(--sstep-fit-accent, var(--ctx-cached));
|
||||
fill-opacity: 0.14;
|
||||
stroke: var(--sstep-fit-accent, var(--ctx-cached));
|
||||
stroke-opacity: 0.24;
|
||||
stroke-width: 0.75;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-ci-band.is-multi {
|
||||
fill-opacity: 0.1;
|
||||
stroke-opacity: 0.18;
|
||||
}
|
||||
|
||||
.sstep-fit-line {
|
||||
stroke: var(--sstep-fit-accent, var(--ctx-cached));
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.sstep-ols-line {
|
||||
stroke: color-mix(in srgb, var(--text-secondary) 72%, var(--surface-panel));
|
||||
stroke-width: 1.1;
|
||||
stroke-dasharray: 3.5 3;
|
||||
}
|
||||
|
||||
.sstep-scatter-dot {
|
||||
fill: color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 48%, var(--text-secondary) 52%);
|
||||
fill-opacity: 0.42;
|
||||
stroke: none;
|
||||
}
|
||||
|
||||
.sstep-scatter-dot.is-multi {
|
||||
fill: var(--sstep-fit-accent, var(--ctx-cached));
|
||||
fill-opacity: 0.48;
|
||||
}
|
||||
|
||||
.sstep-fit-svg .trend-hover-dot {
|
||||
stroke: var(--hover-dot-color, var(--accent-primary));
|
||||
}
|
||||
|
||||
.sstep-hover-raw-dot {
|
||||
fill: var(--surface-panel);
|
||||
stroke: var(--text-primary);
|
||||
stroke-width: 1.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sstep-empty-hint {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 11px;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.sstep-model-legend {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 10px;
|
||||
padding-top: 2px;
|
||||
font-size: 10px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.sstep-legend-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sstep-legend-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--swatch-bg, var(--ctx-cached));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sstep-legend-line {
|
||||
width: 11px;
|
||||
height: 2px;
|
||||
border-radius: 1px;
|
||||
background: var(--swatch-bg, var(--ctx-cached));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sstep-fit-legend[hidden],
|
||||
.sstep-model-legend[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.sstep-fit-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 8px;
|
||||
padding-top: 2px;
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.sstep-fit-legend {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.sstep-fit-legend-ols {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sstep-fit-legend-ols[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sstep-fit-swatch {
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sstep-fit-swatch.is-scatter {
|
||||
width: 5.5px;
|
||||
height: 5.5px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 48%, var(--text-secondary) 52%);
|
||||
opacity: 0.68;
|
||||
}
|
||||
|
||||
.sstep-fit-swatch.is-curve {
|
||||
width: 11px;
|
||||
height: 2px;
|
||||
border-radius: 1px;
|
||||
background: var(--sstep-fit-accent, var(--ctx-cached));
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.sstep-fit-swatch.is-ci {
|
||||
width: 10px;
|
||||
height: 6.5px;
|
||||
border-radius: 1px;
|
||||
background: color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 22%, var(--surface-panel));
|
||||
border: 0.75px solid color-mix(in srgb, var(--sstep-fit-accent, var(--ctx-cached)) 42%, transparent);
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.sstep-fit-swatch.is-ols {
|
||||
width: 10px;
|
||||
height: 0;
|
||||
border-top: 1.2px dashed color-mix(in srgb, var(--text-secondary) 75%, var(--surface-panel));
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.sstep-fit-delta {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* --- 4. 极简高密度模型总览列表 (Minimalist Session Model Summary Cards) --- */
|
||||
.smodel-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.smodel-section-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 2px 1px 0;
|
||||
}
|
||||
|
||||
.smodel-empty {
|
||||
padding: var(--space-5) var(--space-3);
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
border: 1px dashed var(--border-hairline);
|
||||
border-radius: var(--radius-xs);
|
||||
}
|
||||
|
||||
.smodel-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.smodel-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
padding: 7px 10px;
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-xs);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background var(--dur-instant) var(--ease-fast),
|
||||
border-color var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.smodel-card:hover {
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.smodel-card.is-fit-active {
|
||||
border-color: var(--accent-primary-border);
|
||||
background: color-mix(in srgb, var(--accent-primary) 4.5%, var(--surface-panel));
|
||||
}
|
||||
|
||||
.smodel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.smodel-ident {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.smodel-name {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.smodel-calls-pill {
|
||||
flex-shrink: 0;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
padding: 1px 5px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--surface-track);
|
||||
border-radius: var(--radius-xs);
|
||||
}
|
||||
|
||||
.smodel-totals {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.smodel-tok {
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.smodel-cost {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.smodel-seg-bar {
|
||||
height: 3.5px;
|
||||
}
|
||||
|
||||
.smodel-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 2px 10px;
|
||||
font-size: 10.5px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.smodel-perf {
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.smodel-split {
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user