make resize handle available to extensions

This commit is contained in:
AUTOMATIC1111
2023-08-21 08:48:22 +03:00
parent b4d21e7113
commit df595ae313
7 changed files with 139 additions and 120 deletions

View File

@@ -20,6 +20,18 @@ class ToolButton(FormComponent, gr.Button):
return "button"
class ResizeHandleRow(gr.Row):
"""Same as gr.Row but fits inside gradio forms"""
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.elem_classes.append("resize-handle-row")
def get_block_name(self):
return "row"
class FormRow(FormComponent, gr.Row):
"""Same as gr.Row but fits inside gradio forms"""