Update title text for 🔍 button (Add example)

pull/15/head
LEv145 2023-07-30 13:44:21 +02:00
parent 50e8b5a881
commit 724931c8f0
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ arsp__ar_button_titles["\u{1f5bc}"] = "Get dimensions from image on current img2
arsp__ar_button_titles["Calculate Height"] = "Calculate new height based on source aspect ratio"; arsp__ar_button_titles["Calculate Height"] = "Calculate new height based on source aspect ratio";
arsp__ar_button_titles["Calculate Width"] = "Calculate new width based on source aspect ratio"; arsp__ar_button_titles["Calculate Width"] = "Calculate new width based on source aspect ratio";
arsp__ar_button_titles["Apply"] = "Apply calculated width and height to txt2img/img2img sliders"; arsp__ar_button_titles["Apply"] = "Apply calculated width and height to txt2img/img2img sliders";
arsp__ar_button_titles["\uD83D\uDD0D"] = "Round dimensions to the nearest multiples of 4"; arsp__ar_button_titles["\uD83D\uDD0D"] = "Round dimensions to the nearest multiples of 4 (1023x101 => 1024x100)";
onUiUpdate(function(){ onUiUpdate(function(){
gradioApp().querySelectorAll('#arsp__txt2img_container_aspect_ratio button, #arsp__img2img_container_aspect_ratio button').forEach(function(elem){ gradioApp().querySelectorAll('#arsp__txt2img_container_aspect_ratio button, #arsp__img2img_container_aspect_ratio button').forEach(function(elem){