aboutsummaryrefslogtreecommitdiff
path: root/modules/ui_common.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-19 08:06:13 +0300
committerGitHub <noreply@github.com>2023-08-19 08:06:13 +0300
commit90e560bb7583c16f2595e6f62faeb7934e66edce (patch)
tree58041a827a343f17bde34306af9fa5e90a25e44f /modules/ui_common.py
parent9182dd7e5d4e721f98d8292bfdf597897331fa78 (diff)
parent44d4e7c500a9a6c5cb89db58364d82a886ef2f8c (diff)
Merge pull request #12648 from catboxanon/feat/gallery-tweaks
Gallery: Set preview to `True`, allow custom height
Diffstat (limited to 'modules/ui_common.py')
-rw-r--r--modules/ui_common.py2
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():