Fix wishlist modal overlay and enable vertical scrolling

Ensures the loading overlay is always hidden when opening the wishlist modal, including on error or early return. Updates CSS to allow vertical scrolling in the modal while keeping horizontal overflow hidden.
This commit is contained in:
Broque Thomas 2025-12-15 11:21:17 -08:00
parent 3c7659feac
commit 4c9f7f3b58
2 changed files with 4 additions and 1 deletions

View file

@ -5836,6 +5836,7 @@ async function openDownloadMissingWishlistModal(category = null) {
process.modalElement.style.display = 'flex';
WishlistModalState.setVisible(); // Track that modal is now visible
}
hideLoadingOverlay(); // Always hide overlay before returning
return; // Don't create a new one
}
@ -5868,6 +5869,7 @@ async function openDownloadMissingWishlistModal(category = null) {
} catch (error) {
showToast(`Failed to fetch wishlist data: ${error.message}`, 'error');
hideLoadingOverlay();
return;
}

View file

@ -9337,7 +9337,8 @@ body {
flex-direction: column;
padding: 16px 28px 25px 28px;
gap: 20px;
overflow: hidden;
overflow-y: auto; /* Allow vertical scrolling */
overflow-x: hidden;
}
/* Dashboard Stats Section */