mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
fix(panel): eliminate hover flicker in monthly chart and breakdown rows
- Replace the 3px .monthly-grid column gap with zero-gap column padding and hand off hover across adjacent active months without hiding or restarting the popover fade-in - Wrap the progress bar and model-name footer inside a single .cons-source-hover-zone across client sources, project ranking, and session ranking so crossing the vertical gap keeps the popover and highlight steady
This commit is contained in:
@@ -479,6 +479,8 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
border-top-color: color-mix(in srgb, var(--text-primary) 8%, transparent);
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .cons-source-hover-zone.is-interactive:hover .cons-source-model-bar,
|
||||
[data-modern-ui="true"] .cons-source-hover-zone.is-hovered .cons-source-model-bar,
|
||||
[data-modern-ui="true"] .cons-source-bar-hit:hover .cons-source-model-bar,
|
||||
[data-modern-ui="true"] .cons-source-bar-hit.is-hovered .cons-source-model-bar,
|
||||
[data-modern-ui="true"] .month-col.is-interactive:hover .month-stack,
|
||||
|
||||
@@ -891,12 +891,27 @@
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.cons-source-bar-hit {
|
||||
padding: 5px 0;
|
||||
margin: -5px 0;
|
||||
.cons-source-hover-zone {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
padding: 4px 0 2px;
|
||||
margin: -4px 0 -2px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.cons-source-hover-zone.is-interactive {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.cons-source-bar-hit {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
.cons-source-hover-zone.is-interactive:hover .cons-source-model-bar,
|
||||
.cons-source-hover-zone.is-hovered .cons-source-model-bar,
|
||||
.cons-source-bar-hit:hover .cons-source-model-bar,
|
||||
.cons-source-bar-hit.is-hovered .cons-source-model-bar {
|
||||
box-shadow: 0 0 0 1px var(--border-strong);
|
||||
@@ -959,6 +974,8 @@
|
||||
transition: color 120ms ease;
|
||||
}
|
||||
|
||||
.cons-source-hover-zone.is-interactive:hover .cons-source-top-name,
|
||||
.cons-source-hover-zone.is-hovered .cons-source-top-name,
|
||||
.cons-source-top-models:hover .cons-source-top-name,
|
||||
.cons-source-top-models.is-hovered .cons-source-top-name {
|
||||
color: var(--text-primary);
|
||||
@@ -1236,17 +1253,20 @@
|
||||
/* --- 6. 12 个月垂直堆叠柱状图 (12-Month Stacked Bar Chart) --- */
|
||||
.monthly-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
gap: 3px;
|
||||
align-items: end;
|
||||
padding-top: var(--space-2);
|
||||
grid-template-columns: repeat(12, minmax(0, 1fr));
|
||||
gap: 0;
|
||||
align-items: stretch;
|
||||
margin: var(--space-2) -1.5px 0;
|
||||
}
|
||||
|
||||
.month-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 3px;
|
||||
padding: 0 1.5px;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user