This commit is contained in:
Lizandro Guarnizo
2026-01-26 00:04:12 -05:00
parent b0107df7f2
commit 4b9c74e5d7
4 changed files with 90 additions and 35 deletions
+9
View File
@@ -1229,6 +1229,15 @@ try {
});
}
// Close sidebar when a nav item is selected (mobile UX improvement)
document.querySelectorAll('.nav-link[data-tab]').forEach(link => {
link.addEventListener('click', () => {
if (window.innerWidth < 992) {
closeSidebar();
}
});
});
// Close sidebar on Escape
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') closeSidebar();