From d40bd37406d9ed81607205fd97acfc12579c7e68 Mon Sep 17 00:00:00 2001 From: Smittix Date: Tue, 17 Feb 2026 15:18:15 +0000 Subject: [PATCH] fix: Expand analytics sections on mode switch Sidebar sections are collapsed by default on DOMContentLoaded. When switching to analytics mode, expand all its sections so the dashboard content is visible immediately. Co-Authored-By: Claude Opus 4.6 --- templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/index.html b/templates/index.html index 2c631a1..2f19aee 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3866,6 +3866,8 @@ // Initialize/destroy Analytics mode if (mode === 'analytics') { + // Expand all analytics sections (sidebar sections default to collapsed) + document.querySelectorAll('#analyticsMode .section.collapsed').forEach(s => s.classList.remove('collapsed')); if (typeof Analytics !== 'undefined') Analytics.init(); } else { if (typeof Analytics !== 'undefined' && Analytics.destroy) Analytics.destroy();