diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-07 06:56:37 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-07 06:56:37 +0000 |
commit | 1a5b86ad65fd738eadea1ad72f4abad3a4aabf17 (patch) | |
tree | e13d72ac53340633350f84524c3938f681ff9c3e /modules/ui_components.py | |
parent | de9738044571877450d1038e18f1ecce93d24af3 (diff) | |
download | stable-diffusion-webui-gfx803-1a5b86ad65fd738eadea1ad72f4abad3a4aabf17.tar.gz stable-diffusion-webui-gfx803-1a5b86ad65fd738eadea1ad72f4abad3a4aabf17.tar.bz2 stable-diffusion-webui-gfx803-1a5b86ad65fd738eadea1ad72f4abad3a4aabf17.zip |
rework hires fix preview for #6437: movie it to where it takes less place, make it actually account for all relevant sliders and calculate dimensions correctly
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r-- | modules/ui_components.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py index 91eb0e3d..cac001dc 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -23,3 +23,11 @@ class FormGroup(gr.Group, gr.components.FormComponent): def get_block_name(self):
return "group"
+
+
+class FormHTML(gr.HTML, gr.components.FormComponent):
+ """Same as gr.HTML but fits inside gradio forms"""
+
+ def get_block_name(self):
+ return "html"
+
|