Merge pull request #14740 from light-and-ray/make_extras_tab_collumns_resizable
Make extras tab columns resizable
This commit is contained in:
commit
bac30eb3e7
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue