repair broken quicksettings when some form-requiring options are added to it

This commit is contained in:
AUTOMATIC 2023-01-18 14:33:09 +03:00
parent 0c5913b9c2
commit 6faae23239
2 changed files with 2 additions and 2 deletions

View File

@ -1659,7 +1659,7 @@ def create_ui():
interfaces += [(extensions_interface, "Extensions", "extensions")] interfaces += [(extensions_interface, "Extensions", "extensions")]
with gr.Blocks(css=css, analytics_enabled=False, title="Stable Diffusion") as demo: with gr.Blocks(css=css, analytics_enabled=False, title="Stable Diffusion") as demo:
with gr.Row(elem_id="quicksettings"): with gr.Row(elem_id="quicksettings", variant="compact"):
for i, k, item in sorted(quicksettings_list, key=lambda x: quicksettings_names.get(x[1], x[0])): for i, k, item in sorted(quicksettings_list, key=lambda x: quicksettings_names.get(x[1], x[0])):
component = create_setting_component(k, is_quicksettings=True) component = create_setting_component(k, is_quicksettings=True)
component_dict[k] = component component_dict[k] = component

View File

@ -530,7 +530,7 @@ input[type="range"]{
gap: 0.4em; gap: 0.4em;
} }
#quicksettings > div{ #quicksettings > div, #quicksettings > fieldset{
max-width: 24em; max-width: 24em;
min-width: 24em; min-width: 24em;
padding: 0; padding: 0;