Enhance modal styles and add scrollbar width variable

This commit is contained in:
Will Miao
2025-02-19 13:32:57 +08:00
parent 2f099325e4
commit ebc4196071
3 changed files with 16 additions and 17 deletions

View File

@@ -113,16 +113,6 @@ export function showLoraModal(lora) {
<button class="close" onclick="modalManager.closeModal('loraModal')">&times;</button>
<header class="modal-header">
<h2>${lora.model_name}</h2>
<div class="modal-actions">
${lora.from_civitai ?
`<button class="fetch-btn" title="Refresh metadata from Civitai">
<i class="fas fa-sync-alt"></i>
</button>` :
`<button class="fetch-btn" title="Fetch from Civitai">
<i class="fas fa-cloud-download-alt"></i>
</button>`
}
</div>
</header>
<div class="modal-body">
@@ -391,7 +381,7 @@ export function setupShowcaseScroll() {
event.preventDefault();
}
}
});
}, { passive: false }); // Add passive: false option here
// Keep the existing scroll tracking code
const modalContent = document.querySelector('.modal-content');