diff options
author | JaredTherriault <noirjt@live.com> | 2023-09-05 00:29:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 00:29:33 +0000 |
commit | 5e16914a4e157ab3ed96f8b7841e1290a56f4484 (patch) | |
tree | 655f4582e692f0fc3667b3b668ad365ac3ab92ae /extensions-builtin/mobile/javascript | |
parent | 8f3b02f09535f55d3673aa9ea589396b8614f799 (diff) | |
parent | 5ef669de080814067961f28357256e8fe27544f4 (diff) | |
download | stable-diffusion-webui-gfx803-5e16914a4e157ab3ed96f8b7841e1290a56f4484.tar.gz stable-diffusion-webui-gfx803-5e16914a4e157ab3ed96f8b7841e1290a56f4484.tar.bz2 stable-diffusion-webui-gfx803-5e16914a4e157ab3ed96f8b7841e1290a56f4484.zip |
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'extensions-builtin/mobile/javascript')
-rw-r--r-- | extensions-builtin/mobile/javascript/mobile.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions-builtin/mobile/javascript/mobile.js b/extensions-builtin/mobile/javascript/mobile.js index 12cae4b7..652f07ac 100644 --- a/extensions-builtin/mobile/javascript/mobile.js +++ b/extensions-builtin/mobile/javascript/mobile.js @@ -20,7 +20,13 @@ 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); } } window.addEventListener("resize", reportWindowSize); + +onUiLoaded(function() { + reportWindowSize(); +}); |