From f97f5c1c315e83802d9d4db7707526f475084444 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Thu, 24 Apr 2025 01:44:53 +0900 Subject: [PATCH] update image on toggle --- javascript/imageviewer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript/imageviewer.js b/javascript/imageviewer.js index 69159be98..737fe483b 100644 --- a/javascript/imageviewer.js +++ b/javascript/imageviewer.js @@ -165,6 +165,7 @@ function modalLivePreviewToggle(event) { const modalToggleLivePreview = gradioApp().getElementById("modal_toggle_live_preview"); opts.js_live_preview_in_modal_lightbox = !opts.js_live_preview_in_modal_lightbox; modalToggleLivePreview.innerHTML = opts.js_live_preview_in_modal_lightbox ? "🗇" : "🗆"; + updateModalImageIfVisible(); event.stopPropagation(); }