Fix fullscreen image viewer

This commit is contained in:
missionfloyd 2023-12-03 21:48:11 -07:00
parent b8040e4ab9
commit 64fb3d16a9

View File

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