added compact prompt option

This commit is contained in:
AUTOMATIC1111
2023-11-05 19:19:55 +03:00
parent d9499f4301
commit 4d4a9e7332
10 changed files with 315 additions and 169 deletions

View File

@@ -12,6 +12,8 @@ function isMobile() {
}
function reportWindowSize() {
if (gradioApp().querySelector('.toprow-compact-tools')) return; // not applicable for compact prompt layout
var currentlyMobile = isMobile();
if (currentlyMobile == isSetupForMobile) return;
isSetupForMobile = currentlyMobile;