fix: set timing bar widths via JS DOM assignment after innerHTML
Some checks failed
Build and Push Docker Image / build (push) Successful in 21s
CI / Security audit (push) Successful in 40s
CI / Tests & coverage (push) Failing after 51s

All previous attempts (inline style=, CSS custom property via style=)
were ineffective. Setting element.style.width directly in JS after
panel.innerHTML is assigned is the only approach that cannot be
interfered with by CSP or attribute sanitisation.

Width is stored as data-w attribute in the HTML string and applied
by querySelectorAll('.timing-bar[data-w]') post-render.
This commit is contained in:
2026-05-17 08:59:21 +01:00
parent 67a8610843
commit 0dbf0e0899
2 changed files with 5 additions and 2 deletions

View File

@@ -952,7 +952,6 @@ body {
.timing-bar {
height: 100%;
width: var(--bar-w, 100%);
background: var(--accent);
border-radius: 4px;
min-width: 2px;