mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-04 13:55:06 +08:00
Revert
This reverts commit8c6c973614
. Revert "Update settings.js" This reverts commit4fa673a68a
. Revert "Update style.css" This reverts commita037918748
.
This commit is contained in:
parent
8c6c973614
commit
45493949cd
@ -41,10 +41,8 @@ onUiLoaded(function() {
|
|||||||
settings_tabs.insertBefore(edit, settings_tabs.firstChild);
|
settings_tabs.insertBefore(edit, settings_tabs.firstChild);
|
||||||
settings_tabs.appendChild(buttonShowAllPages);
|
settings_tabs.appendChild(buttonShowAllPages);
|
||||||
|
|
||||||
buttonShowAllPages.addEventListener("click", settingsShowAllTabs);
|
|
||||||
|
|
||||||
var settingsResultOutput = gradioApp().querySelector("#settings_result > div.svelte-1ed2p3z");
|
buttonShowAllPages.addEventListener("click", settingsShowAllTabs);
|
||||||
settingsResultOutput.classList.add("prose");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,13 +86,7 @@ class UiSettings:
|
|||||||
opts.save(shared.config_filename)
|
opts.save(shared.config_filename)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.'
|
return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.'
|
||||||
|
return opts.dumpjson(), f'{len(changed)} settings changed{": " if changed else ""}{", ".join(changed)}.'
|
||||||
result_output = f'{len(changed)} settings changed:'
|
|
||||||
result_output += "".join(f"<br>{item}" for item in changed)
|
|
||||||
existing_result = self.result.value or ""
|
|
||||||
updated_result = f"{existing_result}<br>{result_output}" if existing_result else result_output
|
|
||||||
|
|
||||||
return opts.dumpjson(), updated_result
|
|
||||||
|
|
||||||
def run_settings_single(self, value, key):
|
def run_settings_single(self, value, key):
|
||||||
if not opts.same_type(value, opts.data_labels[key].default):
|
if not opts.same_type(value, opts.data_labels[key].default):
|
||||||
|
16
style.css
16
style.css
@ -480,20 +480,8 @@ div.toprow-compact-tools{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#settings_result{
|
#settings_result{
|
||||||
height: auto;
|
height: 1.4em;
|
||||||
width: auto;
|
margin: 0 1.2em;
|
||||||
}
|
|
||||||
|
|
||||||
#settings_result.block{
|
|
||||||
margin: 0 0.8em;
|
|
||||||
max-height: 10em;
|
|
||||||
overflow-y: auto !important;
|
|
||||||
background-color: var(--input-background-fill);
|
|
||||||
}
|
|
||||||
|
|
||||||
#settings_result > div.svelte-1ed2p3z{
|
|
||||||
margin: 0;
|
|
||||||
padding: 13px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table.popup-table{
|
table.popup-table{
|
||||||
|
Loading…
Reference in New Issue
Block a user