mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
perf(panel): virtualize large step tables and optimize steps view switching and LOESS fit
This commit is contained in:
@@ -2931,6 +2931,7 @@ html[data-standalone="true"] .app-shell {
|
||||
|
||||
.table-viewport.is-step-table {
|
||||
overflow-x: auto;
|
||||
overflow-anchor: none;
|
||||
}
|
||||
|
||||
/* --- 2. 粘性表头数据表 (Sticky-Header Data Table) --- */
|
||||
@@ -2974,10 +2975,44 @@ html[data-standalone="true"] .app-shell {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.data-table tbody tr:hover {
|
||||
.data-table tbody tr:not(.step-vspacer):not(.step-vsizer):hover {
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.data-table tbody tr.step-vspacer,
|
||||
.data-table tbody tr.step-vspacer:hover,
|
||||
.data-table tbody tr.step-vsizer,
|
||||
.data-table tbody tr.step-vsizer:hover {
|
||||
background: transparent !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.data-table tbody tr.step-vsizer {
|
||||
visibility: hidden;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.data-table tbody tr.step-vsizer td {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
border: none !important;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.step-vsizer-inner {
|
||||
display: block;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table tbody tr.step-vspacer td.step-vspacer-cell {
|
||||
padding: 0 !important;
|
||||
border: none !important;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
.step-model-cell {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
@@ -5935,7 +5970,7 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .data-table tbody tr {
|
||||
[data-modern-ui="true"] .data-table tbody tr:not(.step-vspacer):not(.step-vsizer) {
|
||||
transition: background-color 130ms var(--ease-modern);
|
||||
}
|
||||
|
||||
@@ -5947,11 +5982,13 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
animation: anim-modern-step-cell-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .data-table tbody tr:nth-child(even) {
|
||||
[data-modern-ui="true"] .data-table:not(.is-virtualized) tbody tr:nth-child(even),
|
||||
[data-modern-ui="true"] .data-table.is-virtualized tbody tr.is-stripe-even {
|
||||
background: var(--modern-stripe-bg);
|
||||
}
|
||||
|
||||
[data-modern-ui="true"] .data-table tbody tr:hover {
|
||||
[data-modern-ui="true"] .data-table tbody tr:not(.step-vspacer):not(.step-vsizer):hover,
|
||||
[data-modern-ui="true"] .data-table.is-virtualized tbody tr.is-stripe-even:hover {
|
||||
background: var(--modern-surface-hover);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user