From 04274f5839889dc9ab375210547a3a236b75246d Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 23 Aug 2023 12:11:06 +0530 Subject: [PATCH] Fix styling on mobile devices --- CHANGES.md | 1 + ui/index.html | 8 ++-- ui/media/css/main.css | 69 +++++++++++++++++++++++++++++ ui/media/js/multi-model-selector.js | 2 +- 4 files changed, 75 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 63e81f85..4f5b7d8f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ - **Major rewrite of the code** - We've switched to using diffusers under-the-hood, which allows us to release new features faster, and focus on making the UI and installer even easier to use. ### Detailed changelog +* 3.0.2 - 23 Aug 2023 - Fix styling on mobile devices. * 3.0.2 - 22 Aug 2023 - Full support for inpainting models, including custom models. Support SD 1.x and SD 2.x inpainting models. Does not require you to specify a yaml config file. * 3.0.2 - 22 Aug 2023 - Reduce VRAM consumption of controlnet in 'low' VRAM mode, and allow accelerating controlnets using xformers. * 3.0.2 - 22 Aug 2023 - Improve auto-detection of SD 2.0 and 2.1 models, removing the need for custom yaml files for SD 2.x models. Improve the model load time by speeding-up the black image test. diff --git a/ui/index.html b/ui/index.html index eb4c62da..4cac4ae4 100644 --- a/ui/index.html +++ b/ui/index.html @@ -157,9 +157,9 @@ Image Settings - + - + @@ -290,7 +290,7 @@ - + Swap width and height - +
Advanced sizes
diff --git a/ui/media/css/main.css b/ui/media/css/main.css index e9021ead..8fe59882 100644 --- a/ui/media/css/main.css +++ b/ui/media/css/main.css @@ -1940,8 +1940,77 @@ div#enlarge-buttons { margin: 12px 10px; } +#num_outputs_total { + width: 42pt; +} +#num_outputs_parallel { + width: 42pt; +} +.model_entry .model_weight { + width: 50pt; +} /* hack for fixing Image Modifier Improvements plugin */ #imageTagPopupContainer { position: absolute; } + +@media screen and (max-width: 400px) { + .editor-slider { + width: 40%; + } + input::-webkit-outer-spin-button, + input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; + } + input[type=number] { + -moz-appearance: textfield; + /* Firefox */ + } + #num_outputs_total { + width: 27pt; + } + #num_outputs_parallel { + width: 27pt; + margin-left: -4pt; + } + .model_entry .model_weight { + width: 30pt; + } + #width { + width: 50pt; + } + #height { + width: 50pt; + } +} +@media screen and (max-width: 460px) { + #widthLabel small span { + display: none; + } + #widthLabel small:after { + content: "(w)"; + } + #heightLabel small span { + display: none; + } + #heightLabel small:after { + content: "(h)"; + } + #prompt-toolbar-right { + text-align: right; + } + #editor-settings label { + font-size: 9pt; + } + #editor-settings .model-filter { + width: 56%; + } + #vae_model { + width: 65% !important; + } + .model_entry .model_name { + width: 60% !important; + } +} \ No newline at end of file diff --git a/ui/media/js/multi-model-selector.js b/ui/media/js/multi-model-selector.js index 472ed81a..0640288f 100644 --- a/ui/media/js/multi-model-selector.js +++ b/ui/media/js/multi-model-selector.js @@ -137,7 +137,7 @@ class MultiModelSelector { modelElement.className = "model_entry" modelElement.innerHTML = ` - + ` this.modelContainer.appendChild(modelElement)