From e156373ad003d4f11ee4fc6dec8ff033ddf81bd6 Mon Sep 17 00:00:00 2001 From: RossAsscends <124905043+RossAscends@users.noreply.github.com> Date: Sat, 25 Feb 2023 21:15:29 +0900 Subject: [PATCH] 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. --- public/css/bg_load.css | 2 +- public/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/css/bg_load.css b/public/css/bg_load.css index 139ef92e1..f82a68152 100644 --- a/public/css/bg_load.css +++ b/public/css/bg_load.css @@ -1 +1 @@ -#bg1 {background-image: url(../backgrounds/tavern.png);} +#bg1 {background-image: url(../backgrounds/whitesnow.png);} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 2ffe641de..655ad3099 100644 --- a/public/index.html +++ b/public/index.html @@ -597,7 +597,7 @@ if(online_status != 'no_connection' && this_chid != undefined){ if(type != 'regenerate'){ var textareaText = $("#send_textarea").val(); - $("#send_textarea").val(''); + $("#send_textarea").val('').trigger('input'); }else{ var textareaText = "";