mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
refactor(panel): remove step table row-click diagnostic drawer
This commit is contained in:
@@ -1316,267 +1316,8 @@
|
||||
color: var(--metric-info);
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-selectable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.data-table tbody tr.is-selected {
|
||||
background: var(--surface-active) !important;
|
||||
}
|
||||
|
||||
.step-inspector-drawer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 9px 10px;
|
||||
margin-top: 4px;
|
||||
border-top: 1px solid var(--border-strong);
|
||||
background: var(--surface-subtle);
|
||||
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.step-inspector-drawer[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.step-insp-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.step-insp-head-left {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.step-insp-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 1px 6px;
|
||||
border-radius: var(--radius-xs);
|
||||
background: var(--accent-primary-soft);
|
||||
color: var(--accent-primary);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 600;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.step-insp-model {
|
||||
font-size: var(--fs-base-sm);
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.step-insp-time {
|
||||
font-size: var(--fs-xs);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.step-insp-head-actions {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.step-insp-icon-btn,
|
||||
.step-insp-copy-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
border-radius: var(--radius-xs);
|
||||
border: 1px solid var(--border-hairline);
|
||||
background: var(--surface-panel);
|
||||
color: var(--text-secondary);
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--fs-xs);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.step-insp-icon-btn {
|
||||
width: 22px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.step-insp-icon-btn:hover:not(:disabled),
|
||||
.step-insp-copy-btn:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.step-insp-icon-btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.step-insp-copy-btn.is-copied {
|
||||
color: var(--metric-ok);
|
||||
border-color: color-mix(in srgb, var(--metric-ok) 40%, var(--border-hairline));
|
||||
}
|
||||
|
||||
.step-insp-waterfall {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.step-insp-waterfall[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.step-insp-wf-track {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
border-radius: var(--radius-pill);
|
||||
overflow: hidden;
|
||||
background: var(--surface-track);
|
||||
}
|
||||
|
||||
.step-insp-wf-seg {
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.step-insp-wf-seg.is-ttft {
|
||||
background: var(--metric-warn);
|
||||
}
|
||||
|
||||
.step-insp-wf-seg.is-stream {
|
||||
background: var(--metric-ok);
|
||||
}
|
||||
|
||||
.step-insp-wf-seg.is-other {
|
||||
background: color-mix(in srgb, var(--text-muted) 48%, transparent);
|
||||
}
|
||||
|
||||
.step-insp-wf-legend {
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.step-insp-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.step-insp-kpi {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
padding: 5px 7px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border-hairline);
|
||||
background: var(--surface-panel);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.step-insp-kpi-lbl {
|
||||
font-size: var(--fs-2xs);
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.step-insp-kpi-val {
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.step-insp-kpi-sub {
|
||||
font-size: var(--fs-2xs);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.step-insp-prompt {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: 5px 8px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-hairline);
|
||||
}
|
||||
|
||||
.step-insp-prompt[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.step-insp-prompt-lbl {
|
||||
font-size: var(--fs-2xs);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.step-insp-prompt-text {
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--text-primary);
|
||||
line-height: 1.4;
|
||||
max-height: 54px;
|
||||
overflow-y: auto;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.step-insp-prompt-text::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.step-insp-anomalies {
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--metric-danger);
|
||||
padding: 4px 8px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--metric-danger-soft);
|
||||
}
|
||||
|
||||
.step-insp-anomalies[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .steps-chip-btn {
|
||||
border: none;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--modern-surface-subtle);
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .step-inspector-drawer {
|
||||
border-top: none;
|
||||
border-radius: 10px;
|
||||
background: var(--modern-surface-subtle);
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .step-insp-kpi,
|
||||
[data-modern-ui="true"] .step-insp-prompt,
|
||||
[data-modern-ui="true"] .step-insp-icon-btn,
|
||||
[data-modern-ui="true"] .step-insp-copy-btn {
|
||||
border: none;
|
||||
background: var(--modern-surface-card);
|
||||
}
|
||||
|
||||
@media (max-width: 440px) {
|
||||
.step-insp-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user