From 1cc17174f61adf0b789274369b962467c2a29e57 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 26 Jan 2026 00:29:43 -0500 Subject: [PATCH] Update index.php --- index.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 032755d..ea7e784 100644 --- a/index.php +++ b/index.php @@ -1078,7 +1078,7 @@ try { actions.appendChild(btn); toast.appendChild(actions); this.toastsContainer.appendChild(toast); - } + }, showToast(notification) { const toast = document.createElement('div'); toast.className = 'notification-toast'; @@ -1219,7 +1219,9 @@ try { } if (toggleBtn) { + console.debug('[index] sidebar toggle found:', { toggleBtn: !!toggleBtn, sidebar: !!sidebar }); toggleBtn.addEventListener('click', (e) => { + console.debug('[index] sidebar-toggle clicked', { isOpen: sidebar && sidebar.classList.contains('open') }); e.stopPropagation(); if (sidebar && sidebar.classList.contains('open')) { closeSidebar(); @@ -1229,6 +1231,12 @@ try { }); } + // debug logs for open/close + const _openSidebar = openSidebar; + const _closeSidebar = closeSidebar; + openSidebar = function() { console.debug('[index] openSidebar()'); _openSidebar(); }; + closeSidebar = function() { console.debug('[index] closeSidebar()'); _closeSidebar(); }; + // Close sidebar when a nav item is selected (mobile UX improvement) document.querySelectorAll('.nav-link[data-tab]').forEach(link => { link.addEventListener('click', () => {