compact checkbox and fix copy image btn overflow

also fixes type for #tab_extensions in style.css
This commit is contained in:
EllangoK 2023-01-21 16:21:33 -05:00
parent f2eae6127d
commit bf457b30fb
2 changed files with 6 additions and 2 deletions

View File

@ -919,7 +919,7 @@ def create_ui():
seed, reuse_seed, subseed, reuse_subseed, subseed_strength, seed_resize_from_h, seed_resize_from_w, seed_checkbox = create_seed_inputs('img2img') seed, reuse_seed, subseed, reuse_subseed, subseed_strength, seed_resize_from_h, seed_resize_from_w, seed_checkbox = create_seed_inputs('img2img')
elif category == "checkboxes": elif category == "checkboxes":
with FormRow(elem_id="img2img_checkboxes"): with FormRow(elem_id="img2img_checkboxes", variant="compact"):
restore_faces = gr.Checkbox(label='Restore faces', value=False, visible=len(shared.face_restorers) > 1, elem_id="img2img_restore_faces") restore_faces = gr.Checkbox(label='Restore faces', value=False, visible=len(shared.face_restorers) > 1, elem_id="img2img_restore_faces")
tiling = gr.Checkbox(label='Tiling', value=False, elem_id="img2img_tiling") tiling = gr.Checkbox(label='Tiling', value=False, elem_id="img2img_tiling")

View File

@ -589,7 +589,7 @@ canvas[key="mask"] {
/* Extensions */ /* Extensions */
#tab_extensions table``{ #tab_extensions table{
border-collapse: collapse; border-collapse: collapse;
} }
@ -718,6 +718,10 @@ footer {
margin-left: -0.8em; margin-left: -0.8em;
} }
#img2img_copy_to_img2img, #img2img_copy_to_sketch, #img2img_copy_to_inpaint, #img2img_copy_to_inpaint_sketch{
margin-left: 0em;
}
.inactive{ .inactive{
opacity: 0.5; opacity: 0.5;
} }