feat(panel): dual-mount topbar capsule, live multi-session HUD, and customizable topbar metrics (v1.4.3)

This commit is contained in:
fish
2026-11-11 17:31:42 +09:00
parent d60a3cde9b
commit e1da514515
56 changed files with 13389 additions and 3679 deletions
+1 -3
View File
@@ -14,12 +14,10 @@
@keyframes anim-pulse-dot {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.22);
opacity: 0.62;
opacity: 0.22;
}
}
+5
View File
@@ -40,6 +40,11 @@ button,
input {
font-family: inherit;
font-size: inherit;
font-stretch: inherit;
font-variation-settings: inherit;
line-height: inherit;
letter-spacing: inherit;
font-variant-numeric: inherit;
color: inherit;
}
+127 -8
View File
@@ -523,10 +523,6 @@
overflow: hidden;
}
.custom-scroll-host[hidden] {
display: none !important;
}
.custom-scroll-content {
flex: 1;
min-width: 0;
@@ -678,10 +674,6 @@
transition: opacity var(--dur-instant) var(--ease-fast), transform var(--dur-instant) var(--ease-fast);
}
.update-badge-btn[hidden] {
display: none !important;
}
.update-badge-btn:hover {
opacity: 0.9;
}
@@ -689,3 +681,130 @@
.update-badge-btn:active {
transform: scale(0.96);
}
/* --- 9. 顶部栏定制面板专属表单与排序槽位控件 (Topbar Customization Controls) --- */
.settings-inline-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
min-height: 26px;
}
.topbar-header-right {
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.btn-ghost-sm {
display: inline-flex;
align-items: center;
justify-content: center;
height: 20px;
padding: 0 6px;
font-size: 11px;
font-weight: 500;
color: var(--text-secondary);
background: transparent;
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
cursor: pointer;
white-space: nowrap;
transition:
background-color var(--dur-instant) var(--ease-fast),
color var(--dur-instant) var(--ease-fast),
border-color var(--dur-instant) var(--ease-fast);
}
.btn-ghost-sm:hover:not(:disabled) {
background: var(--surface-hover);
color: var(--text-primary);
border-color: var(--border-strong);
}
.btn-ghost-sm:disabled {
opacity: 0.42;
cursor: default;
}
.topbar-slot-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.topbar-slot-row {
position: relative;
display: flex;
align-items: center;
gap: 6px;
padding: 2px 4px 2px 6px;
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
background: transparent;
transition: border-color var(--dur-instant) var(--ease-fast);
}
.topbar-slot-row:focus-within,
.topbar-slot-row:has(.is-open) {
z-index: 30;
border-color: var(--border-strong);
}
.topbar-slot-row .select-menu {
max-height: 216px;
}
.slot-index-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
font-size: 10.5px;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: var(--text-secondary);
background: color-mix(in srgb, var(--text-primary) 7%, transparent);
border-radius: var(--radius-xs);
flex-shrink: 0;
}
.slot-order-btns {
display: inline-flex;
align-items: center;
gap: 2px;
flex-shrink: 0;
}
.slot-move-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
border: none;
border-radius: var(--radius-xs);
background: transparent;
color: var(--text-secondary);
cursor: pointer;
transition:
background-color var(--dur-instant) var(--ease-fast),
color var(--dur-instant) var(--ease-fast);
}
.slot-move-btn:hover:not(:disabled) {
background: var(--surface-hover);
color: var(--text-primary);
}
.slot-move-btn:active:not(:disabled) {
transform: scale(0.94);
}
.slot-move-btn:disabled {
opacity: 0.28;
cursor: default;
}
+589
View File
@@ -0,0 +1,589 @@
/*
* 双栖模式顶栏胶囊与悬浮面板样式表 (overlay.css).
* 严格遵循单层微边框与语义变量规范(零硬编码色值、零 Emoji、硬件加速合成层动画)。
*/
/* --- 1. 顶栏胶囊宿主容器 (Titlebar Capsule Host) --- */
:host(.wm-capsule-host) {
display: inline-flex;
align-items: center;
gap: 6px;
height: 28px;
flex-shrink: 0;
vertical-align: middle;
-webkit-app-region: no-drag;
pointer-events: auto;
user-select: none;
font-family: "Google Sans Flex", "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
font-size: 12px;
font-weight: 450;
font-stretch: 100%;
font-variation-settings: normal;
line-height: 18px;
letter-spacing: 0.015em;
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
color: var(--text-primary);
z-index: 2147482900;
}
:host(.wm-capsule-host[data-dock="flow"]) {
position: relative;
margin-right: 4px;
}
:host(.wm-capsule-host[data-dock="fixed"]) {
position: fixed;
top: 6px;
right: 144px;
}
@keyframes wm-dot-pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.38;
}
}
/* 左侧多会话实时状态触发器(无边框、与宿主顶栏按钮同高 28px、整数行高防压扁) */
.wm-multi-btn {
position: relative;
display: inline-flex;
align-items: center;
gap: 6px;
height: 28px;
padding: 0 8px;
margin: 0;
background: transparent;
color: var(--text-secondary);
border: none;
outline: none;
box-shadow: none;
border-radius: var(--radius-sm);
font-family: inherit;
font-size: 12px;
font-weight: 450;
line-height: 18px;
letter-spacing: 0.015em;
font-variant-numeric: tabular-nums;
cursor: pointer;
-webkit-app-region: no-drag;
white-space: nowrap;
contain: layout style;
transition:
background-color var(--dur-instant) var(--ease-fast),
color var(--dur-instant) var(--ease-fast);
}
.wm-multi-btn[hidden],
.wm-cap-slot[hidden],
.wm-sep[hidden] {
display: none !important;
}
.wm-multi-btn:hover {
background: color-mix(in srgb, var(--text-primary) 7%, transparent);
color: var(--text-primary);
}
.wm-multi-btn.is-open {
background: color-mix(in srgb, var(--text-primary) 11%, transparent);
color: var(--text-primary);
}
.wm-multi-dot {
width: 8px;
height: 8px;
border-radius: var(--radius-pill);
background: color-mix(in srgb, var(--text-secondary) 44%, transparent);
flex-shrink: 0;
}
.wm-multi-btn.is-running .wm-multi-dot {
background: var(--accent-primary);
animation: wm-dot-pulse 1.5s ease-in-out infinite;
}
.wm-multi-btn.is-waiting .wm-multi-dot {
background: var(--metric-warn);
animation: wm-dot-pulse 1.5s ease-in-out infinite;
}
.wm-multi-label {
display: inline-block;
min-width: 46px;
line-height: 18px;
text-align: left;
white-space: nowrap;
flex-shrink: 0;
}
.wm-multi-btn.is-running .wm-multi-label,
.wm-multi-btn.is-waiting .wm-multi-label {
color: var(--text-primary);
font-weight: 500;
}
.wm-capsule-btn {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
height: 28px;
padding: 0 9px;
margin: 0;
background: transparent;
color: var(--text-secondary);
border: none;
outline: none;
box-shadow: none;
border-radius: var(--radius-sm);
font-family: inherit;
font-size: 12px;
font-weight: 450;
line-height: 18px;
letter-spacing: 0.015em;
font-variant-numeric: tabular-nums;
cursor: pointer;
-webkit-app-region: no-drag;
white-space: nowrap;
contain: layout style;
transition:
background-color var(--dur-instant) var(--ease-fast),
color var(--dur-instant) var(--ease-fast);
}
.wm-capsule-btn:hover {
background: color-mix(in srgb, var(--text-primary) 7%, transparent);
color: var(--text-primary);
}
.wm-capsule-btn.is-open {
background: color-mix(in srgb, var(--text-primary) 11%, transparent);
color: var(--text-primary);
}
/* 右侧胶囊通用槽位容器与按指标预占定宽(严格防止动态数值跳动,保留舒展字间距) */
.wm-cap-slot {
display: inline-flex;
align-items: center;
justify-content: center;
height: 18px;
line-height: 18px;
flex-shrink: 0;
color: var(--text-secondary);
}
.wm-slot-text {
display: inline-block;
line-height: 18px;
letter-spacing: 0.015em;
font-variant-numeric: tabular-nums;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-shrink: 0;
}
/* 环形上下文指示器(固定预占宽度 50px:14px 环 + 5px 间距 + 31px 百分比槽位) */
.wm-ctx-seg {
justify-content: center;
gap: 5px;
width: 50px;
}
.wm-ring-svg {
width: 14px;
height: 14px;
flex-shrink: 0;
transform: rotate(-90deg);
}
.wm-ring-track {
fill: none;
stroke: color-mix(in srgb, var(--text-secondary) 24%, transparent);
stroke-width: 2;
}
.wm-ring-fill {
fill: none;
stroke: var(--accent-primary);
stroke-width: 2;
stroke-linecap: round;
transition:
stroke-dashoffset var(--dur-normal) var(--ease-fast),
stroke var(--dur-fast) var(--ease-fast);
}
.wm-ring-fill.tone-warn {
stroke: var(--metric-warn);
}
.wm-ring-fill.tone-danger {
stroke: var(--metric-danger);
}
.wm-ctx-pct {
min-width: 27px;
max-width: 31px;
text-align: left;
font-weight: 500;
color: var(--text-primary);
}
.wm-sep {
width: 1px;
height: 12px;
background: color-mix(in srgb, var(--text-secondary) 26%, transparent);
flex-shrink: 0;
}
/* 速度槽位(固定预占宽度 58px 居中对齐) */
.wm-seg-speed {
width: 58px;
}
.wm-speed-text {
width: 58px;
text-align: center;
}
.wm-seg-speed.state-running {
color: var(--metric-speed);
font-weight: 500;
}
/* 首字延迟槽位(固定预占宽度 46px 居中对齐,覆盖 0.85s ~ 105s) */
.wm-seg-ttft {
width: 46px;
}
.wm-ttft-text {
width: 46px;
text-align: center;
}
/* 本次费用槽位(固定预占宽度 52px 居中对齐,覆盖 <$0.001 ~ $99.99) */
.wm-seg-cost {
width: 52px;
}
.wm-cost-text {
width: 52px;
text-align: center;
color: var(--text-primary);
font-weight: 500;
}
/* 配额槽位(固定预占宽度 52px 居中对齐,完整容纳 余 100% / 余 --% 且在任意槽位对称) */
.wm-seg-quota {
width: 52px;
}
.wm-quota-text {
width: 52px;
text-align: center;
}
.wm-cap-slot.tone-warn,
.wm-cap-slot.tone-warn .wm-slot-text {
color: var(--metric-warn);
font-weight: 500;
}
.wm-cap-slot.tone-danger,
.wm-cap-slot.tone-danger .wm-slot-text {
color: var(--metric-danger);
font-weight: 500;
}
/* 右上角绝对定位更新圆点,不参与文档流,零宽度抖动 */
.wm-update-dot {
position: absolute;
top: 3px;
right: 3px;
width: 5px;
height: 5px;
border-radius: var(--radius-pill);
background: var(--metric-ok);
pointer-events: none;
}
/* 四级响应式迟滞折叠(基于可见槽位次序 data-vis-rank 与分隔线次序 data-sep-for-rank 动态折叠) */
:host(.wm-capsule-host[data-layout="compact"]) .wm-cap-slot[data-vis-rank="3"],
:host(.wm-capsule-host[data-layout="compact"]) .wm-sep[data-sep-for-rank="3"] {
display: none !important;
}
:host(.wm-capsule-host[data-layout="minimal"]) .wm-cap-slot[data-vis-rank="2"],
:host(.wm-capsule-host[data-layout="minimal"]) .wm-cap-slot[data-vis-rank="3"],
:host(.wm-capsule-host[data-layout="minimal"]) .wm-sep[data-sep-for-rank="2"],
:host(.wm-capsule-host[data-layout="minimal"]) .wm-sep[data-sep-for-rank="3"],
:host(.wm-capsule-host[data-layout="minimal"]) .wm-multi-label {
display: none !important;
}
:host(.wm-capsule-host[data-layout="minimal"]) .wm-multi-btn,
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-multi-btn {
padding: 0 7px;
}
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-cap-slot[data-vis-rank="2"],
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-cap-slot[data-vis-rank="3"],
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-sep[data-sep-for-rank="2"],
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-sep[data-sep-for-rank="3"],
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-cap-slot[data-vis-rank="1"] .wm-ctx-pct,
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-multi-label {
display: none !important;
}
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-capsule-btn {
padding: 0 6px;
}
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-cap-slot[data-vis-rank="1"].wm-ctx-seg {
width: 14px;
}
/* --- 2. 顶层浮层传送门宿主 (Body Portal Host: Multi-Session HUD, Tooltip & Full 4-Tab Popover) --- */
:host(.wm-portal-host) {
position: fixed;
inset: 0;
width: 0;
height: 0;
overflow: visible;
pointer-events: none;
z-index: 2147483000;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
font-size: 12.5px;
line-height: 1.4;
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
color: var(--text-primary);
}
@keyframes wm-popover-in {
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));
height: min(588px, calc(100vh - 54px));
max-height: calc(100vh - 54px);
display: flex;
flex-direction: column;
background: var(--surface-bg);
color: var(--text-primary);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-overlay);
pointer-events: auto;
overflow: hidden;
-webkit-app-region: no-drag;
transform-origin: top right;
animation: wm-popover-in var(--dur-fast) var(--ease-fast);
}
.wm-popover-panel .app-shell {
height: 100%;
max-height: 100%;
max-width: none;
}
/* 顶栏胶囊悬停全景概览浮层(复用实时概览三卡片架构,全槽位预占,仅就地更新节点不跳动) */
.wm-hover-tip {
position: fixed;
top: 42px;
left: 12px;
width: min(492px, calc(100vw - 24px));
max-height: calc(100vh - 54px);
padding: var(--space-3) var(--space-4);
display: flex;
flex-direction: column;
gap: var(--space-3);
background: var(--surface-bg);
color: var(--text-primary);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-overlay);
pointer-events: none;
overflow: hidden;
contain: layout style;
z-index: 2147483001;
transform-origin: top right;
animation: wm-popover-in var(--dur-instant) var(--ease-fast);
}
/* 左侧在线多会话实时看板浮层(单层无套娃细线卡片,仅显示在线运行会话,留足呼吸感) */
.wm-multi-panel {
position: fixed;
top: 42px;
left: 12px;
width: min(484px, calc(100vw - 24px));
max-height: calc(100vh - 54px);
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 0;
background: var(--surface-bg);
color: var(--text-primary);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-overlay);
pointer-events: auto;
overflow-x: hidden;
overflow-y: auto;
-webkit-app-region: no-drag;
contain: layout style;
z-index: 2147483002;
transform-origin: top left;
animation: wm-popover-in var(--dur-instant) var(--ease-fast);
}
.wm-popover-panel.is-instant,
.wm-hover-tip.is-instant,
.wm-multi-panel.is-instant {
animation: none !important;
}
.wm-hover-tip .cell-label,
.wm-hover-tip .legend-item,
.wm-hover-tip .legend-left,
.wm-hover-tip .panel-header > span {
white-space: nowrap;
min-width: 0;
}
.wm-hover-tip .panel-header > span:first-child:not(.panel-title) {
overflow: hidden;
text-overflow: ellipsis;
}
.wm-hover-quota-pools {
display: flex;
flex-direction: column;
gap: 0;
}
.wm-hover-quota-foot {
font-size: 11px;
padding-top: 2px;
}
.wm-pin-badge {
display: inline-flex;
align-items: center;
height: 16px;
padding: 0 5px;
font-size: 10px;
font-weight: 600;
color: var(--accent-primary);
background: var(--accent-primary-soft);
border-radius: var(--radius-xs);
flex-shrink: 0;
}
.wm-session-tag {
display: inline-flex;
align-items: center;
height: 16px;
padding: 0 4px;
font-size: 10px;
font-weight: 600;
color: var(--text-secondary);
background: color-mix(in srgb, var(--text-primary) 7%, transparent);
border-radius: var(--radius-xs);
white-space: nowrap;
flex-shrink: 0;
}
.wm-session-tag.is-here {
color: var(--accent-primary);
background: var(--accent-primary-soft);
}
.wm-task-metrics {
font-size: 11px;
color: var(--text-secondary);
white-space: nowrap;
flex-shrink: 0;
}
.wm-multi-header {
padding-bottom: 10px;
border-bottom: 1px solid var(--border-hairline);
}
/* 多会话单层面板内去除重复边框与底色,留足行距与段落呼吸感,仅靠左侧圆点闪烁表达状态 */
.wm-multi-panel .live-activity-list {
gap: 0;
}
.wm-multi-panel .live-task-card {
gap: 8px;
padding: 12px 2px;
border: none;
border-radius: 0;
background: transparent;
}
.wm-multi-panel .live-task-card:first-child {
padding-top: 11px;
}
.wm-multi-panel .live-task-card:last-child {
padding-bottom: 2px;
}
.wm-multi-panel .live-task-card + .live-task-card {
border-top: 1px solid var(--border-hairline);
}
.wm-multi-panel .live-task-title {
font-size: 12.5px;
}
.wm-multi-empty {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
min-height: 36px;
padding: 12px 2px 4px;
font-size: 12px;
color: var(--text-secondary);
}
.wm-multi-empty-left {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.wm-idle-dot {
width: 8px;
height: 8px;
border-radius: var(--radius-pill);
background: color-mix(in srgb, var(--text-secondary) 38%, transparent);
flex-shrink: 0;
}
.wm-multi-empty-hint {
font-size: 11px;
color: var(--text-muted);
white-space: nowrap;
flex-shrink: 0;
}
+5 -11
View File
@@ -4,26 +4,24 @@
* eliminating hardcoded hex colors across components and views.
*/
:root {
:root,
:host {
/* Architectural Geometry: Only Top Nav uses --radius-pill */
--radius-pill: 999px;
--radius-sm: 4px;
--radius-xs: 2px;
/* Host-Bridged Surfaces (Clean, zero-muddy-gray light mode) */
/* Host-Bridged Surfaces (Clean, zero-muddy-gray light mode & safe dark fallback) */
--surface-bg: var(--background, hsl(0 0% 100%));
--surface-panel: var(--card, hsl(0 0% 100%));
--surface-panel: var(--card, var(--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-elevated: 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));
--surface-backdrop: color-mix(in srgb, var(--surface-bg) 78%, transparent);
/* Crisp 1px Hairline Borders */
--border-hairline: color-mix(in srgb, var(--border, hsl(214 18% 88%)) 82%, var(--surface-panel));
--border-strong: color-mix(in srgb, var(--border-hairline) 72%, var(--text-primary) 28%);
--border-focus: var(--accent-primary);
/* Typography Hierarchy */
--text-primary: var(--foreground, hsl(215 22% 15%));
@@ -46,10 +44,8 @@
--metric-warn-soft: color-mix(in srgb, var(--metric-warn) 15%, transparent);
--metric-danger: var(--destructive, hsl(0 74% 50%));
--metric-danger-soft: color-mix(in srgb, var(--metric-danger) 15%, transparent);
/* Context Window 10-Channel Palette */
--ctx-messages: hsl(217 82% 51%);
--ctx-assistant: hsl(217 82% 54%);
--ctx-tool-results: hsl(192 82% 43%);
--ctx-user-input: hsl(245 72% 62%);
@@ -69,7 +65,7 @@
/* Elevation & Shadows */
--shadow-popover: 0 4px 12px rgb(0 0 0 / 0.22);
--shadow-glider: 0 1px 2px rgb(0 0 0 / 0.14);
--shadow-overlay: 0 16px 38px rgb(0 0 0 / 0.38), 0 3px 10px rgb(0 0 0 / 0.22);
/* Fast Hardware-Accelerated Motion Tokens */
--ease-fast: cubic-bezier(0.22, 1, 0.36, 1);
@@ -78,10 +74,8 @@
--dur-normal: 180ms;
/* Spacing & Density */
--space-1: 4px;
--space-2: 6px;
--space-3: 8px;
--space-4: 10px;
--space-5: 12px;
--space-6: 14px;
}
+47 -10
View File
@@ -1,14 +1,14 @@
/*
* 全景消耗统计视图样式表 (views-consumption.css).
* 包含:
* 1. 消费概览顶栏与 3+2 统一指标矩阵 (.cons-overview-head, .cons-unified-matrix, .cons-split-*, .cons-col)
* 1. 消费概览顶栏与 3+3 统一指标矩阵 (.cons-overview-head, .cons-unified-matrix, .cons-split-3, .cons-col)
* 2. 4 段比例条与圆点色块 (.dot-swatch, .cons-seg-bar)
* 3. 热门模型与数据来源列表项样式 (.cons-row-*, .cons-share-pill, .cons-item-*)
* 4. 历史趋势纯 SVG 平滑曲线图与峰值胶囊 (.trend-*)
* 5. 12 个月垂直堆叠柱状图与月度图例 (.monthly-*, .month-*)
*/
/* --- 1. 消费概览顶栏与 3+2 组合指标矩阵 (Consumption Overview Matrix) --- */
/* --- 1. 消费概览顶栏与 3+3 组合指标矩阵 (Consumption Overview Matrix) --- */
.cons-overview-head {
flex-wrap: wrap;
gap: 6px;
@@ -48,15 +48,28 @@
grid-template-columns: repeat(3, 1fr);
}
.cons-split-2 {
display: grid;
grid-template-columns: 1fr 1fr;
}
.cons-matrix-bottom {
border-top: 1px solid var(--border-hairline);
}
.cons-matrix-bottom .cons-col {
gap: 4px;
}
@media (max-width: 350px) {
.cons-matrix-bottom.cons-split-3 {
grid-template-columns: 1fr;
}
.cons-matrix-bottom .cons-col {
padding-left: 0;
padding-right: 0;
}
.cons-matrix-bottom .cons-col.is-bordered-col {
border-left: none;
border-top: 1px solid var(--border-hairline);
}
}
.cons-col {
display: flex;
flex-direction: column;
@@ -105,10 +118,34 @@
letter-spacing: -0.02em;
}
.cons-mid-num {
font-size: 13px;
font-weight: 700;
.cons-sub-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
min-width: 0;
}
.cons-sub-head > span {
white-space: nowrap;
flex-shrink: 0;
}
.cons-sub-label {
font-size: 11.5px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
flex-shrink: 0;
}
.cons-mid-num {
font-size: 14.5px;
font-weight: 700;
line-height: 1.25;
color: var(--text-primary);
letter-spacing: -0.015em;
white-space: nowrap;
}
/* --- 2. 4 段比例条与圆点色块 (Four-Segment Bar & Dot Swatches) --- */
+43 -58
View File
@@ -3,7 +3,7 @@
* 包含:
* 1. 通用面板容器与标题头 (.panel, .panel-header, .panel-title, .panel-meta)
* 2. 4 格实时测速指标矩阵 (.telemetry-matrix, .matrix-cell, .cell-*)
* 3. 6 段上下文窗口进度条与配额填充条 (.progress-track, .progress-seg, .progress-fill)
* 3. 10 段上下文窗口进度条与配额填充条 (.progress-track, .progress-seg, .progress-fill)
* 4. 上下文双列图例网格与色块 (.ctx-legend-grid, .legend-*, .swatch)
* 5. 双栏布局网格与窄屏响应式断点 (.dual-grid)
*/
@@ -57,50 +57,42 @@
.live-activity-list {
display: flex;
flex-direction: column;
gap: 6px;
gap: 8px;
flex-shrink: 0;
min-width: 0;
}
.live-activity-list[hidden] {
display: none !important;
}
.live-task-card {
display: flex;
flex-direction: column;
gap: 5px;
padding: 7px 10px;
border: 1px solid var(--accent-primary-border);
gap: 7px;
padding: 10px 12px;
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
background: color-mix(in srgb, var(--accent-primary) 5%, var(--surface-panel));
background: var(--surface-panel);
min-width: 0;
}
.live-task-card.is-waiting {
border-color: color-mix(in srgb, var(--metric-warn) 42%, var(--border-hairline));
background: color-mix(in srgb, var(--metric-warn) 7%, var(--surface-panel));
}
.live-task-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
gap: var(--space-3);
min-width: 0;
}
.live-task-title-wrap {
display: flex;
align-items: center;
gap: 5px;
gap: 7px;
min-width: 0;
flex: 1;
}
.live-task-title {
font-size: 11.5px;
font-size: 12px;
font-weight: 600;
line-height: 1.45;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
@@ -116,7 +108,7 @@
.live-task-header-right {
display: inline-flex;
align-items: center;
gap: 6px;
gap: 8px;
flex-shrink: 0;
}
@@ -151,16 +143,13 @@
background: var(--accent-primary-soft);
}
.live-sub-toggle[hidden] {
display: none !important;
}
.live-task-main-row {
display: flex;
align-items: center;
gap: 5px;
gap: 6px;
min-width: 0;
padding-left: 1px;
padding-left: 18px;
line-height: 1.45;
}
.live-activity-dot {
@@ -174,37 +163,37 @@
color: var(--metric-warn);
}
.live-task-card.is-compacting .live-activity-dot {
color: var(--ctx-checkpoint);
}
.live-activity-phase {
font-size: 11px;
font-size: 11.5px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
flex-shrink: 0;
}
.live-task-card.is-waiting .live-activity-phase {
color: var(--metric-warn);
}
.live-activity-progress {
font-size: 10px;
font-size: 10.5px;
font-weight: 600;
color: var(--accent-primary);
background: var(--accent-primary-soft);
padding: 0 4px;
padding: 0 5px;
border-radius: var(--radius-xs);
white-space: nowrap;
flex-shrink: 0;
}
.live-activity-sep {
font-size: 11px;
font-size: 11.5px;
color: var(--text-muted);
flex-shrink: 0;
}
.live-activity-detail {
font-size: 11px;
font-size: 11.5px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
@@ -214,38 +203,35 @@
}
.live-activity-elapsed {
font-size: 11px;
font-weight: 600;
color: var(--accent-primary);
font-size: 11.5px;
font-weight: 500;
color: var(--text-secondary);
white-space: nowrap;
min-width: 28px;
text-align: right;
flex-shrink: 0;
}
.live-task-card.is-waiting .live-activity-elapsed {
color: var(--metric-warn);
}
.live-sub-list {
display: flex;
flex-direction: column;
gap: 4px;
padding-top: 5px;
margin-top: 1px;
gap: 8px;
padding-top: 9px;
margin-top: 3px;
margin-left: 18px;
border-top: 1px dashed var(--border-hairline);
min-width: 0;
}
.live-sub-list[hidden] {
display: none !important;
}
.live-sub-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
gap: 10px;
min-height: 22px;
min-width: 0;
font-size: 10.5px;
font-size: 11.5px;
line-height: 1.45;
}
.live-sub-row.is-done {
@@ -255,7 +241,7 @@
.live-sub-left {
display: flex;
align-items: center;
gap: 5px;
gap: 7px;
min-width: 0;
flex: 1;
}
@@ -266,7 +252,7 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 110px;
max-width: 148px;
flex-shrink: 0;
}
@@ -280,9 +266,11 @@
}
.live-sub-elapsed {
font-size: 10.5px;
font-size: 11px;
color: var(--text-secondary);
white-space: nowrap;
min-width: 28px;
text-align: right;
flex-shrink: 0;
}
@@ -339,7 +327,7 @@
text-overflow: ellipsis;
}
/* --- 3. 6 段上下文进度条与配额池填充条 (Context Segment Meter & Quota Progress Bars) --- */
/* --- 3. 10 段上下文进度条与配额池填充条 (Context Segment Meter & Quota Progress Bars) --- */
.progress-track {
width: 100%;
height: 6px;
@@ -444,6 +432,7 @@
align-items: center;
gap: 5px;
color: var(--text-secondary);
white-space: nowrap;
}
.swatch {
@@ -463,10 +452,6 @@
.swatch.seg-skills { background: var(--ctx-skills); }
.swatch.seg-system-prompt { background: var(--ctx-system-prompt); }
.swatch.seg-user-rules { background: var(--ctx-user-rules); }
.swatch.seg-cached { background: var(--ctx-cached); }
.swatch.seg-input { background: var(--ctx-input); }
.swatch.seg-thinking { background: var(--ctx-thinking); }
.swatch.seg-output { background: var(--ctx-output); }
/* --- 5. 双栏网格与窄视口响应式折叠 (Dual Grid & Responsive Breakpoints) --- */
.dual-grid {