From 4c9f7f3b58a580a218c45623b2018a54d5330e12 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Mon, 15 Dec 2025 11:21:17 -0800 Subject: [PATCH] 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. --- webui/static/script.js | 2 ++ webui/static/style.css | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webui/static/script.js b/webui/static/script.js index 9971c96c..9125cb6d 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -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; } diff --git a/webui/static/style.css b/webui/static/style.css index 13e8dd1e..3816c0fd 100644 --- a/webui/static/style.css +++ b/webui/static/style.css @@ -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 */