mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
make extras tab collumns resizable
This commit is contained in:
parent
94d4b3c8e7
commit
695e24dbce
@ -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
Block a user