up
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user