From 9c15ece5082a0c3e2a29c5ba67b0cd3720b3be63 Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 21 May 2026 21:21:13 +0100 Subject: [PATCH] fix: hide signalViewWrap entirely in modesWithVisuals to prevent layout bleed The flex container was still occupying space even when all its children were hidden, causing a blank box to overlap mode-specific content in Bluetooth, WiFi, SSTV and other modesWithVisuals. Co-Authored-By: Claude Sonnet 4.6 --- templates/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 6055ad4..6eca2f8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4900,8 +4900,15 @@ // Hide the signal feed output for modes that have their own visuals const outputEl = document.getElementById('output'); + const signalViewWrapEl = document.getElementById('signalViewWrap'); const modesWithVisuals = ['satellite', 'sstv', 'weathersat', 'sstv_general', 'wefax', 'aprs', 'wifi', 'bluetooth', 'tscm', 'spystations', 'meshtastic', 'meshcore', 'websdr', 'subghz', 'spaceweather', 'bt_locate', 'wifi_locate', 'waterfall', 'morse', 'meteor', 'system', 'ook', 'radiosonde', 'gps', 'drone']; - if (outputEl) outputEl.style.display = modesWithVisuals.includes(mode) ? 'none' : 'block'; + if (modesWithVisuals.includes(mode)) { + if (signalViewWrapEl) signalViewWrapEl.style.display = 'none'; + if (outputEl) outputEl.style.display = 'none'; + } else { + if (signalViewWrapEl) signalViewWrapEl.style.display = ''; + if (outputEl) outputEl.style.display = 'block'; + } if (typeof PagerDirectory !== 'undefined') PagerDirectory.applyViewState(mode); if (typeof SensorDashboard !== 'undefined') SensorDashboard.applyViewState(mode);