From a63939b0f067167e83f3a92387d2553f9d101038 Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 13 May 2026 11:32:14 +0100 Subject: [PATCH] fix(meshcore): add mesh-sidebar-hidden rules to meshcore.css The sidebar-hiding CSS lives only in meshtastic.css, which is lazily loaded and may not be present when switching directly to Meshcore mode. Duplicating the three rules into meshcore.css ensures the generic sidebar is correctly hidden and the output panel fills the screen regardless of load order. Co-Authored-By: Claude Sonnet 4.6 --- static/css/modes/meshcore.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/static/css/modes/meshcore.css b/static/css/modes/meshcore.css index 0fcc009..081b0bf 100644 --- a/static/css/modes/meshcore.css +++ b/static/css/modes/meshcore.css @@ -1,5 +1,25 @@ /* Meshcore mode — scoped styles */ +/* ── Sidebar hiding (same rules as meshtastic.css — needed here since + meshtastic.css is only lazily loaded when that mode is visited) ── */ +.main-content.mesh-sidebar-hidden { + display: flex !important; + flex-direction: column !important; +} + +.main-content.mesh-sidebar-hidden > .sidebar { + display: none !important; + width: 0 !important; + height: 0 !important; + overflow: hidden !important; +} + +.main-content.mesh-sidebar-hidden > .output-panel { + flex: 1 !important; + width: 100% !important; + max-width: 100% !important; +} + /* ── Container overrides ── */ #meshcoreVisuals { flex-direction: column;