mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
Enhance version selection UI with thumbnails and file size; improve modal click handling
This commit is contained in:
@@ -54,12 +54,14 @@ export class ModalManager {
|
||||
isOpen: false
|
||||
});
|
||||
|
||||
// Add click outside to close for each modal
|
||||
config.element.addEventListener('click', (e) => {
|
||||
if (e.target === config.element) {
|
||||
this.closeModal(id);
|
||||
}
|
||||
});
|
||||
// Only add click outside handler if it's not the download modal
|
||||
if (id !== 'downloadModal') {
|
||||
config.element.addEventListener('click', (e) => {
|
||||
if (e.target === config.element) {
|
||||
this.closeModal(id);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
getModal(id) {
|
||||
|
||||
Reference in New Issue
Block a user