@@ -622,8 +622,8 @@ def copy_image(img):
622622with gr .Column (elem_id = "img2img_column_size" ,scale = 4 ):
623623selected_scale_tab = gr .Number (value = 0 ,visible = False )
624624
625- with gr .Tabs ():
626- with gr .Tab (label = "Resize to" ,elem_id = "img2img_tab_resize_to" )as tab_scale_to :
625+ with gr .Tabs (elem_id = "img2img_tabs_resize" ):
626+ with gr .Tab (label = "Resize to" ,id = "to" , elem_id = "img2img_tab_resize_to" )as tab_scale_to :
627627with FormRow ():
628628with gr .Column (elem_id = "img2img_column_size" ,scale = 4 ):
629629width = gr .Slider (minimum = 64 ,maximum = 2048 ,step = 8 ,label = "Width" ,value = 512 ,elem_id = "img2img_width" )
@@ -632,7 +632,7 @@ def copy_image(img):
632632res_switch_btn = ToolButton (value = switch_values_symbol ,elem_id = "img2img_res_switch_btn" ,tooltip = "Switch width/height" )
633633detect_image_size_btn = ToolButton (value = detect_image_size_symbol ,elem_id = "img2img_detect_image_size_btn" ,tooltip = "Auto detect size from img2img" )
634634
635- with gr .Tab (label = "Resize by" ,elem_id = "img2img_tab_resize_by" )as tab_scale_by :
635+ with gr .Tab (label = "Resize by" ,id = "by" , elem_id = "img2img_tab_resize_by" )as tab_scale_by :
636636scale_by = gr .Slider (minimum = 0.05 ,maximum = 4.0 ,step = 0.05 ,label = "Scale" ,value = 1.0 ,elem_id = "img2img_scale" )
637637
638638with FormRow ():