Merge pull request #14740 from light-and-ray/make_extras_tab_collumns_resizable

Make extras tab columns resizable
This commit is contained in:
AUTOMATIC1111 2024-01-23 22:00:56 +03:00 committed by GitHub
commit bac30eb3e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,13 +1,14 @@
import gradio as gr import gradio as gr
from modules import scripts, shared, ui_common, postprocessing, call_queue, ui_toprow from modules import scripts, shared, ui_common, postprocessing, call_queue, ui_toprow
import modules.infotext_utils as parameters_copypaste import modules.infotext_utils as parameters_copypaste
from modules.ui_components import ResizeHandleRow
def create_ui(): def create_ui():
dummy_component = gr.Label(visible=False) dummy_component = gr.Label(visible=False)
tab_index = gr.Number(value=0, visible=False) tab_index = gr.Number(value=0, visible=False)
with gr.Row(equal_height=False, variant='compact'): with ResizeHandleRow(equal_height=False, variant='compact'):
with gr.Column(variant='compact'): with gr.Column(variant='compact'):
with gr.Tabs(elem_id="mode_extras"): with gr.Tabs(elem_id="mode_extras"):
with gr.TabItem('Single Image', id="single_image", elem_id="extras_single_tab") as tab_single: with gr.TabItem('Single Image', id="single_image", elem_id="extras_single_tab") as tab_single: