mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
fix(panel): eliminate virtual-scroll column jitter in step table
- Lock measured thead column widths with table-layout: fixed once virtualized rows mount, preserving horizontal scroll min-width on narrow viewports and unlocking automatically on layout, sort, locale, font-scale, or sizer changes - Fix buildColumnSizerSpec tokPerSec scoring bug and improve proportional width estimation across badges, models, timing, pending pricing, and bold first-column rows - Enable tabular-nums on .data-table cells to prevent sub-pixel width drift between digits
This commit is contained in:
@@ -56,6 +56,19 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data-table td {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.data-table.is-cols-locked {
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.data-table.is-cols-locked td:not(:first-child) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.data-table th.is-right,
|
||||
.data-table td.is-right {
|
||||
text-align: right;
|
||||
@@ -140,6 +153,10 @@
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.data-table tbody tr.step-vsizer.has-bold-first td:first-child {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.step-vsizer-inner {
|
||||
display: block;
|
||||
height: 0;
|
||||
|
||||
Reference in New Issue
Block a user