fix script order

This commit is contained in:
Vladimir Mandic
2023-05-18 07:47:18 -04:00
parent c1e70df845
commit 08d7829478
3 changed files with 3 additions and 6480 deletions
-6477
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -665,7 +665,7 @@ footer {
.extra-network-cards .card ul a:hover{ color: red; }
.theme-preview { display: none; position: fixed; border: 4px solid var(--neutral-600); box-shadow: 2px 2px 2px 2px var(--neutral-700); top: 0; bottom: 0; left: 0; right: 0; margin: auto; max-width: 75vw; z-index: 999; }
#scripts_alwayson_txt2img, scripts_alwayson_img2img { display: grid }
#scripts_alwayson_txt2img, #scripts_alwayson_img2img { display: grid }
#extras_generate, #extras_interrupt, #extras_skip { display: block !important; position: relative; height: 36px; }
#extras_upscale { margin-top: 10px }
+2 -2
View File
@@ -1,4 +1,4 @@
/* global gradioApp */
/* global gradioApp, onUiUpdate, opts */
window.opts = {};
let tabSelected = '';
@@ -368,7 +368,7 @@ function sort_ui_elements() {
const scriptsTxt = gradioApp().getElementById('scripts_alwayson_txt2img').children;
for (const el of Array.from(scriptsTxt)) el.style.order = find(el, tabsOrder);
const scriptsImg = gradioApp().getElementById('scripts_alwayson_img2img');
const scriptsImg = gradioApp().getElementById('scripts_alwayson_img2img').children;
for (const el of Array.from(scriptsImg)) el.style.order = find(el, tabsOrder);
}