Make live preview viewable in "full screen" (#2630)

Added fix by EvanGuanSF to make live generation preview image clickable to view in fullscreen.

Credit to: https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/1167#issuecomment-2395043707
This commit is contained in:
David Stenbeck 2025-02-08 12:32:10 +01:00 committed by GitHub
parent e21a6e15b6
commit f3672ffbbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,7 +177,7 @@ function modalTileImageToggle(event) {
}
onAfterUiUpdate(function() {
var fullImg_preview = gradioApp().querySelectorAll('.gradio-gallery > button > button > img');
var fullImg_preview = gradioApp().querySelectorAll('.gradio-gallery > button > button > img, .gradio-gallery > .livePreview');
if (fullImg_preview != null) {
fullImg_preview.forEach(setupImageForLightbox);
}