input bar auto-shrink on send

previous the input bar would expand to the fit the size of the typed input, but when it was sent, the bar would stay the same size. Now it will auto-shrink back to default size after sending the input to AI.
This commit is contained in:
RossAsscends
2023-02-25 21:15:29 +09:00
parent 4f2174eced
commit e156373ad0
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
#bg1 {background-image: url(../backgrounds/tavern.png);} #bg1 {background-image: url(../backgrounds/whitesnow.png);}

View File

@@ -597,7 +597,7 @@
if(online_status != 'no_connection' && this_chid != undefined){ if(online_status != 'no_connection' && this_chid != undefined){
if(type != 'regenerate'){ if(type != 'regenerate'){
var textareaText = $("#send_textarea").val(); var textareaText = $("#send_textarea").val();
$("#send_textarea").val(''); $("#send_textarea").val('').trigger('input');
}else{ }else{
var textareaText = ""; var textareaText = "";