diff options
author | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-18 09:15:30 +0000 |
---|---|---|
committer | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-18 09:15:30 +0000 |
commit | 44d4e7c500a9a6c5cb89db58364d82a886ef2f8c (patch) | |
tree | 76731ec8d9c55102798a1312aef51dfb0b25ed5d /modules/ui_common.py | |
parent | 541ef9247cfe8785c12f7142ad02cd5310fc5925 (diff) | |
download | stable-diffusion-webui-gfx803-44d4e7c500a9a6c5cb89db58364d82a886ef2f8c.tar.gz stable-diffusion-webui-gfx803-44d4e7c500a9a6c5cb89db58364d82a886ef2f8c.tar.bz2 stable-diffusion-webui-gfx803-44d4e7c500a9a6c5cb89db58364d82a886ef2f8c.zip |
Gallery: Set preview to True, allow custom height
Diffstat (limited to 'modules/ui_common.py')
-rw-r--r-- | modules/ui_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_common.py b/modules/ui_common.py index 4c035f2a..eddc4bc8 100644 --- a/modules/ui_common.py +++ b/modules/ui_common.py @@ -132,7 +132,7 @@ Requested path was: {f} with gr.Column(variant='panel', elem_id=f"{tabname}_results"):
with gr.Group(elem_id=f"{tabname}_gallery_container"):
- result_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"{tabname}_gallery", columns=4)
+ result_gallery = gr.Gallery(label='Output', show_label=False, elem_id=f"{tabname}_gallery", columns=4, preview=True, height=shared.opts.gallery_height or None)
generation_info = None
with gr.Column():
|