This commit is contained in:
Tomas Dvorak
2025-05-30 12:10:44 +02:00
parent 58c899a6bf
commit 1520c99c63
+17 -5
View File
@@ -202,14 +202,19 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 9999; z-index: 9999;
padding: 2rem; padding: 2rem;
overflow-y: auto; overflow: hidden;
pointer-events: none;
} }
#iconPickerModal.show { #iconPickerModal::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
pointer-events: auto; pointer-events: auto;
} }
@@ -223,6 +228,11 @@
max-height: calc(100vh - 4rem); max-height: calc(100vh - 4rem);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
pointer-events: auto;
}
#iconListContainer {
overflow-y: auto;
} }
#iconPickerHeader { #iconPickerHeader {
@@ -2462,7 +2472,9 @@ function initIconPicker() {
// Close when clicking outside the modal content // Close when clicking outside the modal content
iconPickerModal.addEventListener('click', (e) => { iconPickerModal.addEventListener('click', (e) => {
if (e.target === iconPickerModal) { // Check if click was on the overlay (not the content)
const target = e.target.closest('#iconPickerContainer');
if (!target) {
isModalOpen = false; isModalOpen = false;
document.body.style.overflow = ''; document.body.style.overflow = '';
iconPickerModal.style.display = 'none'; iconPickerModal.style.display = 'none';