Merge pull request #35 from udon-universe/feature/update-gallery-ui-style-for-latest-a1111

update gallery UI style for latest a1111
pull/38/head
mattya_monaca 2023-05-22 11:09:58 +09:00 committed by GitHub
commit 302252a7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ def on_ui_tabs():
submit = gr.Button(value="Submit")
with gr.Row():
with gr.Column():
gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery").style(grid=2)
gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery").style(grid=2, object_fit="contain")
# 0: single 1: batch 2: batch dir
input_tab_single.select(fn=lambda: 0, inputs=[], outputs=[input_tab_state])