From d34320fa6c2fd737713e22c13d830bb391c32a58 Mon Sep 17 00:00:00 2001 From: efiten Date: Sun, 5 Apr 2026 04:41:55 +0200 Subject: [PATCH] fix: use _getColCount() in error-state row to match spacers (#406) (#597) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary The error-state `` row (shown when packet loading fails) hardcoded `colspan="10"`, while the virtual scroll spacers and the empty-state row both use `_getColCount()` (which reads from the actual `` and falls back to 11). One-line fix: replace the hardcoded value with `_getColCount()`. Fixes #406 ## Test plan - [x] Trigger the error state (e.g. kill the backend mid-load) — error row should span all columns with no gap on the right - [x] `node test-packets.js` — 72 passed, 0 failed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 --- public/packets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/packets.js b/public/packets.js index b4a69809..166f92da 100644 --- a/public/packets.js +++ b/public/packets.js @@ -620,7 +620,7 @@ } catch (e) { console.error('Failed to load packets:', e); const tbody = document.getElementById('pktBody'); - if (tbody) tbody.innerHTML = '
Failed to load packets. Please try again.
'; + if (tbody) tbody.innerHTML = '
Failed to load packets. Please try again.
'; } }