mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add conversation turn rail, prompt preview, and decoupled step toggles
- Track user input turn boundaries and prompt previews in extractModelSteps while stripping compaction summary headers - Align interleaved main and subagent steps onto unified rootTurnIndex in telemetry-builder and scope lazy cache refresh to the active session family - Render dynamic left-edge turn rail and viewport-clamped prompt tooltip in StepsDetailView across arbitrary custom column orders - Decouple [主]/[子] agent badges from step index and add independent switches for Turn Rail and Agent Badge under Preferences -> Structure Co-authored-by: Swei <sweilo@qq.com>
This commit is contained in:
@@ -116,6 +116,115 @@
|
||||
background: var(--surface-subtle);
|
||||
}
|
||||
|
||||
/* --- 2.5 极简对话轮次导轨与起点圆点 (Minimalist Turn Rail & Prompt Preview) --- */
|
||||
.steps-data-table.has-turn-rail th:first-child,
|
||||
.steps-data-table.has-turn-rail td:first-child {
|
||||
padding-left: 17px;
|
||||
}
|
||||
|
||||
.steps-data-table td:first-child {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.turn-rail {
|
||||
--rail-line: color-mix(in srgb, var(--text-secondary) 28%, var(--border-hairline));
|
||||
--rail-dot: color-mix(in srgb, var(--accent-primary) 52%, var(--text-secondary));
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: -1px;
|
||||
left: 5px;
|
||||
width: 8px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.turn-rail.is-latest {
|
||||
--rail-line: color-mix(in srgb, var(--accent-primary) 62%, var(--surface-panel));
|
||||
--rail-dot: var(--accent-primary);
|
||||
}
|
||||
|
||||
.steps-data-table tbody tr:hover .turn-rail {
|
||||
--rail-line: color-mix(in srgb, var(--accent-primary) 78%, var(--surface-panel));
|
||||
--rail-dot: var(--accent-primary);
|
||||
}
|
||||
|
||||
.turn-rail-line {
|
||||
position: absolute;
|
||||
left: 3.25px;
|
||||
width: 1.5px;
|
||||
background: var(--rail-line);
|
||||
}
|
||||
|
||||
.turn-rail.has-up.has-down .turn-rail-line {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.turn-rail.has-up:not(.has-down) .turn-rail-line {
|
||||
top: 0;
|
||||
bottom: 50%;
|
||||
}
|
||||
|
||||
.turn-rail.has-down:not(.has-up) .turn-rail-line {
|
||||
top: 50%;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.turn-rail-dot {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 4px;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: var(--radius-pill);
|
||||
}
|
||||
|
||||
.turn-rail-dot.is-cap {
|
||||
width: 3.5px;
|
||||
height: 3.5px;
|
||||
background: var(--rail-line);
|
||||
}
|
||||
|
||||
.turn-rail-dot.is-origin {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: var(--surface-panel);
|
||||
border: 1.5px solid var(--rail-dot);
|
||||
box-shadow: 0 0 0 1px var(--surface-panel);
|
||||
}
|
||||
|
||||
.turn-rail.is-latest .turn-rail-dot.is-origin {
|
||||
background: var(--rail-dot);
|
||||
}
|
||||
|
||||
.turn-rail[hidden],
|
||||
.turn-rail-line[hidden],
|
||||
.turn-rail-dot[hidden],
|
||||
.turn-prompt-tip[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 极简紧凑提问文本悬停预览气泡 */
|
||||
.turn-prompt-tip {
|
||||
position: absolute;
|
||||
z-index: 45;
|
||||
max-width: min(286px, calc(100% - 16px));
|
||||
padding: 5px 8px;
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.42;
|
||||
color: var(--text-primary);
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-xs);
|
||||
box-shadow: var(--shadow-popover);
|
||||
white-space: pre-line;
|
||||
word-break: break-word;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 3;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
animation: anim-popover-in var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
/* --- 3. 按模型汇总分析视图:双趋势图与极简模型总览 (Models Analytics Pane) --- */
|
||||
.models-analytics-pane {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user