From 6d0b0437b3c1d59d4b3251d80c53c4f144dcae1a Mon Sep 17 00:00:00 2001 From: James Smith Date: Tue, 23 Jun 2026 13:54:12 +0100 Subject: [PATCH] fix: hide feed column in sensor dashboard mode, not just #output The feed column (.pdir-feed-col) was left as a flex sibling with flex:1 while only its child #output was hidden, causing the sensor dashboard to occupy ~50% width. Hide/restore the column itself in applyViewState(). Co-Authored-By: Claude Sonnet 4.6 --- static/js/components/sensor-dashboard.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/static/js/components/sensor-dashboard.js b/static/js/components/sensor-dashboard.js index 283ea5a..db75123 100644 --- a/static/js/components/sensor-dashboard.js +++ b/static/js/components/sensor-dashboard.js @@ -162,17 +162,20 @@ const SensorDashboard = (function () { // ---- Show / hide / reset ---- function applyViewState(mode) { - const view = document.getElementById('sensorDashboardView'); - const output = document.getElementById('output'); + const view = document.getElementById('sensorDashboardView'); + const output = document.getElementById('output'); + const feedCol = document.querySelector('.pdir-feed-col'); if (mode === 'sensor') { const saved = localStorage.getItem(STORAGE_KEY) || 'dashboard'; const isDash = saved === 'dashboard'; - if (view) view.style.display = isDash ? 'block' : 'none'; - if (output) output.style.display = isDash ? 'none' : ''; + if (view) view.style.display = isDash ? 'block' : 'none'; + if (output) output.style.display = isDash ? 'none' : ''; + if (feedCol) feedCol.style.display = isDash ? 'none' : ''; _updateToggle(isDash); } else { - if (view) view.style.display = 'none'; + if (view) view.style.display = 'none'; + if (feedCol) feedCol.style.display = ''; } }