fix: CSS sync, sidebar restore, asset versioning, route/auth fixes, admin dashboard #92

Merged
rafaga21 merged 7 commits from fix/policy-container-width into master 2026-06-14 09:43:44 -04:00
Showing only changes of commit 36b0d8dfd9 - Show all commits

View File

@@ -17,6 +17,8 @@ function openNotifications() {
const dd = document.getElementById('notifDropdown');
dd.classList.add('open');
fetchNotifications();
const userMenu = document.getElementById('userMenu');
if (userMenu) userMenu.classList.remove('open');
document.addEventListener('click', notifOutsideClick);
}
@@ -31,6 +33,11 @@ function notifOutsideClick(e) {
if (!wrapper.contains(e.target)) {
closeNotifications();
}
const userWrapper = document.querySelector('.topbar-user-dropdown');
if (userWrapper && !userWrapper.contains(e.target)) {
const userMenu = document.getElementById('userMenu');
if (userMenu) userMenu.classList.remove('open');
}
}
function fetchNotifications() {
@@ -218,6 +225,7 @@ function toggleUserMenu(e) {
});
if (!isOpen) {
menu.classList.add('open');
closeNotifications();
setTimeout(function() {
document.addEventListener('click', closeUserMenu);
}, 0);