dropdown menu and comment side panel

This commit is contained in:
2026-06-10 08:29:02 -04:00
parent 6f646c2505
commit c39c50b9a0
3 changed files with 203 additions and 136 deletions

View File

@@ -74,4 +74,13 @@
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') closeAllDrawers();
});
// Close action dropdowns when clicking outside
document.addEventListener('click', (e) => {
document.querySelectorAll('.document-actions-dropdown[open]').forEach((details) => {
if (!details.contains(e.target)) {
details.removeAttribute('open');
}
});
});
})();