fix(centralui): stabilize audit grid th nodes with @key; doc grid limitations

This commit is contained in:
Joseph Doherty
2026-05-21 06:33:20 -04:00
parent f1478c5a19
commit c503df4c4c
3 changed files with 31 additions and 0 deletions

View File

@@ -171,6 +171,12 @@ window.auditGrid = {
// Apply a width to a <th> via a CSS custom property. The scoped stylesheet
// reads --audit-col-width; absent it, the column falls back to auto.
//
// Known, intentional behaviour: during a live resize drag this updates the
// <th> width immediately, but the <td> body cells only catch up on the next
// .NET re-render (driven by OnColumnResized at pointer-up). The brief
// header/body width mismatch mid-drag is an accepted trade-off for an
// internal tool — not a bug.
_applyWidth: function (th, widthPx) {
th.style.setProperty("--audit-col-width", widthPx + "px");
},