diff --git a/javascript/settings.js b/javascript/settings.js index 754471ade..b2d981c21 100644 --- a/javascript/settings.js +++ b/javascript/settings.js @@ -41,10 +41,8 @@ onUiLoaded(function() { settings_tabs.insertBefore(edit, settings_tabs.firstChild); settings_tabs.appendChild(buttonShowAllPages); - buttonShowAllPages.addEventListener("click", settingsShowAllTabs); - var settingsResultOutput = gradioApp().querySelector("#settings_result > div.svelte-1ed2p3z"); - settingsResultOutput.classList.add("prose"); + buttonShowAllPages.addEventListener("click", settingsShowAllTabs); }); diff --git a/modules/ui_settings.py b/modules/ui_settings.py index 55b5caf93..e53ad50f8 100644 --- a/modules/ui_settings.py +++ b/modules/ui_settings.py @@ -86,13 +86,7 @@ class UiSettings: opts.save(shared.config_filename) except RuntimeError: return opts.dumpjson(), f'{len(changed)} settings changed without save: {", ".join(changed)}.' - - result_output = f'{len(changed)} settings changed:' - result_output += "".join(f"
{item}" for item in changed) - existing_result = self.result.value or "" - updated_result = f"{existing_result}
{result_output}" if existing_result else result_output - - return opts.dumpjson(), updated_result + return opts.dumpjson(), f'{len(changed)} settings changed{": " if changed else ""}{", ".join(changed)}.' def run_settings_single(self, value, key): if not opts.same_type(value, opts.data_labels[key].default): diff --git a/style.css b/style.css index 3476d8109..64ef61bad 100644 --- a/style.css +++ b/style.css @@ -480,20 +480,8 @@ div.toprow-compact-tools{ } #settings_result{ - height: auto; - width: auto; -} - -#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; + height: 1.4em; + margin: 0 1.2em; } table.popup-table{