aboutsummaryrefslogtreecommitdiff
path: root/modules/ui_components.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-03 09:04:29 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-03 09:04:29 +0300
commit18c03cdeac6272734b0c09afd3fbe47d1372dd07 (patch)
tree198722ca92ab9715c2ef9230ccd9ed5d86226653 /modules/ui_components.py
parent269f6e867651cadef40d2c939a79d13291280bcd (diff)
styling rework to make things more compact
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r--modules/ui_components.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py
index d0519d2d..91eb0e3d 100644
--- a/modules/ui_components.py
+++ b/modules/ui_components.py
@@ -16,3 +16,10 @@ class FormRow(gr.Row, gr.components.FormComponent):
def get_block_name(self):
return "row"
+
+
+class FormGroup(gr.Group, gr.components.FormComponent):
+ """Same as gr.Row but fits inside gradio forms"""
+
+ def get_block_name(self):
+ return "group"