diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-22 20:20:30 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-22 20:20:30 +0000 |
commit | f4e931f18fa4f94aece1f4dabd4dd0d635ecec13 (patch) | |
tree | 89f10f931a3808f6b603c2bb72ee70cb92e28c1c /modules | |
parent | 569dc1919c23329ceaec2162f86ca0fafdee39f5 (diff) | |
download | stable-diffusion-webui-gfx803-f4e931f18fa4f94aece1f4dabd4dd0d635ecec13.tar.gz stable-diffusion-webui-gfx803-f4e931f18fa4f94aece1f4dabd4dd0d635ecec13.tar.bz2 stable-diffusion-webui-gfx803-f4e931f18fa4f94aece1f4dabd4dd0d635ecec13.zip |
put extra networks controls row into the tabs UI element for #14588
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ui.py | 4 | ||||
-rw-r--r-- | modules/ui_extra_networks.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py index ebd33a85..177c6872 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -266,7 +266,7 @@ def create_ui(): dummy_component = gr.Label(visible=False)
- extra_tabs = gr.Tabs(elem_id="txt2img_extra_tabs")
+ extra_tabs = gr.Tabs(elem_id="txt2img_extra_tabs", elem_classes=["extra-networks"])
extra_tabs.__enter__()
with gr.Tab("Generation", id="txt2img_generation") as txt2img_generation_tab, ResizeHandleRow(equal_height=False):
@@ -499,7 +499,7 @@ def create_ui(): with gr.Blocks(analytics_enabled=False) as img2img_interface:
toprow = ui_toprow.Toprow(is_img2img=True, is_compact=shared.opts.compact_prompt_box)
- extra_tabs = gr.Tabs(elem_id="img2img_extra_tabs")
+ extra_tabs = gr.Tabs(elem_id="img2img_extra_tabs", elem_classes=["extra-networks"])
extra_tabs.__enter__()
with gr.Tab("Generation", id="img2img_generation") as img2img_generation_tab, ResizeHandleRow(equal_height=False):
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 157b3a6d..325d848e 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -672,7 +672,7 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname): for page, tab in zip(ui.stored_extra_pages, related_tabs):
jscode = (
"function(){{"
- f"extraNetworksTabSelected('{tabname}', '{tabname}_{page.extra_networks_tabname}_prompts', {str(page.allow_prompt).lower()}, {str(page.allow_negative_prompt).lower()});"
+ f"extraNetworksTabSelected('{tabname}', '{tabname}_{page.extra_networks_tabname}_prompts', {str(page.allow_prompt).lower()}, {str(page.allow_negative_prompt).lower()}, '{tabname}_{page.extra_networks_tabname}');"
f"applyExtraNetworkFilter('{tabname}_{page.extra_networks_tabname}');"
"}}"
)
|