mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 20:42:59 +00:00
e
This commit is contained in:
+17
-5
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user