diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-03 06:04:29 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-03 06:04:29 +0000 |
commit | 18c03cdeac6272734b0c09afd3fbe47d1372dd07 (patch) | |
tree | 198722ca92ab9715c2ef9230ccd9ed5d86226653 /modules/ui_components.py | |
parent | 269f6e867651cadef40d2c939a79d13291280bcd (diff) | |
download | stable-diffusion-webui-gfx803-18c03cdeac6272734b0c09afd3fbe47d1372dd07.tar.gz stable-diffusion-webui-gfx803-18c03cdeac6272734b0c09afd3fbe47d1372dd07.tar.bz2 stable-diffusion-webui-gfx803-18c03cdeac6272734b0c09afd3fbe47d1372dd07.zip |
styling rework to make things more compact
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r-- | modules/ui_components.py | 7 |
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"
|