make extras tab collumns resizable

This commit is contained in:
Andray 2024-01-23 21:56:49 +04:00
parent 94d4b3c8e7
commit 695e24dbce

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: