make live previews play nice with window/slider resizes

This commit is contained in:
AUTOMATIC1111
2023-08-20 13:38:35 +03:00
parent a0d721e109
commit db5c304e29
3 changed files with 15 additions and 25 deletions

View File

@@ -20,6 +20,8 @@ function reportWindowSize() {
var button = gradioApp().getElementById(tab + '_generate_box');
var target = gradioApp().getElementById(currentlyMobile ? tab + '_results' : tab + '_actions_column');
target.insertBefore(button, target.firstElementChild);
gradioApp().getElementById(tab + '_results').classList.toggle('mobile', currentlyMobile);
}
}