From 69c8a82cc937e556d96fe8d8716274f5ac885348 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();