mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): polish compaction row popover, pill selects, steps header, scrollbar, and chart tooltips
# Conflicts: # sidecars/panel/index.html
This commit is contained in:
@@ -211,12 +211,6 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cons-title-model-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.cons-row-metrics {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -349,9 +343,9 @@
|
||||
left: var(--tip-x, 50%);
|
||||
transform: translateX(var(--tip-shift, -50%));
|
||||
width: max-content;
|
||||
min-width: 196px;
|
||||
max-width: min(320px, calc(100% - 8px));
|
||||
padding: 6px 10px;
|
||||
min-width: 224px;
|
||||
max-width: min(316px, calc(100% - 8px));
|
||||
padding: 9px 11px;
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
@@ -360,27 +354,29 @@
|
||||
z-index: 25;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.trend-tip-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
font-size: var(--fs-sm);
|
||||
gap: 12px;
|
||||
font-size: var(--fs-xs);
|
||||
line-height: 1.25;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.trend-tip-time {
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-tip-calls {
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 500;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
max-width: 190px;
|
||||
@@ -390,36 +386,85 @@
|
||||
|
||||
.trend-tip-main {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.trend-tip-tokens {
|
||||
font-size: var(--fs-base);
|
||||
font-size: var(--fs-lg);
|
||||
font-weight: 700;
|
||||
line-height: 1.18;
|
||||
letter-spacing: -0.02em;
|
||||
color: var(--accent-primary);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-tip-cost {
|
||||
font-size: var(--fs-md);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
padding: 2px 7px;
|
||||
border-radius: var(--radius-xs);
|
||||
color: var(--text-primary);
|
||||
background: color-mix(in srgb, var(--text-primary) 6%, transparent);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.trend-tip-cost:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.trend-tip-sub {
|
||||
padding: 5px 8px;
|
||||
border: none;
|
||||
border-radius: var(--radius-xs);
|
||||
background: color-mix(in srgb, var(--text-primary) 4.2%, transparent);
|
||||
font-size: var(--fs-xs);
|
||||
line-height: 1.3;
|
||||
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-tip-sub[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.trend-tip-sub.is-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
padding: 6px 8px;
|
||||
white-space: normal;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.trend-tip-stat {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.trend-tip-stat-label {
|
||||
font-size: var(--fs-2xs);
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.trend-tip-stat-val {
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
color: var(--text-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.trend-tooltip.is-line-low {
|
||||
@@ -807,9 +852,9 @@
|
||||
left: var(--pop-x, 8px);
|
||||
top: var(--pop-y, 8px);
|
||||
width: max-content;
|
||||
min-width: 196px;
|
||||
max-width: min(310px, calc(100% - 16px));
|
||||
padding: 6px 10px;
|
||||
min-width: 224px;
|
||||
max-width: min(316px, calc(100% - 16px));
|
||||
padding: 9px 11px;
|
||||
background: var(--surface-panel);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
@@ -818,24 +863,34 @@
|
||||
z-index: 30;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.cons-pop-models {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
border-top: 1px solid var(--border-hairline);
|
||||
padding-top: 4px;
|
||||
margin-top: 2px;
|
||||
gap: 4px;
|
||||
border-top: 1px solid color-mix(in srgb, var(--border-hairline) 75%, transparent);
|
||||
padding-top: 6px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.cons-pop-models[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.trend-tip-sub:not([hidden]) + .cons-pop-models {
|
||||
border-top: none;
|
||||
padding-top: 1px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.cons-pop-model-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
font-size: var(--fs-sm);
|
||||
gap: 10px;
|
||||
font-size: var(--fs-xs);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
@@ -849,6 +904,7 @@
|
||||
|
||||
.cons-pop-model-name {
|
||||
max-width: 156px;
|
||||
font-weight: 500;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -871,10 +927,11 @@
|
||||
}
|
||||
|
||||
.cons-pop-model-pct {
|
||||
min-width: 40px;
|
||||
min-width: 38px;
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
/* --- 6. 12 个月垂直堆叠柱状图 (12-Month Stacked Bar Chart) --- */
|
||||
|
||||
Reference in New Issue
Block a user