Fix chat input

This commit is contained in:
cuom1999 2023-06-02 12:45:30 +07:00
parent 8cfc58ad91
commit a02814621e
2 changed files with 5 additions and 1 deletions

View file

@ -63,7 +63,7 @@
#chat-input { #chat-input {
width: 100%; width: 100%;
padding: 0.4em 4em 0.6em 1.2em; padding: 0.4em 4em 1em 1.2em;
border: 0; border: 0;
color: black; color: black;
border-top-left-radius: 0; border-top-left-radius: 0;

View file

@ -560,6 +560,10 @@
return !in_user_redirect; return !in_user_redirect;
}); });
$("#chat-input").on("keyup", function() {
$("#chat-input").scrollTop($("#chat-input")[0].scrollHeight);
});
// https://stackoverflow.com/questions/42121565/detecting-class-change-without-setinterval // https://stackoverflow.com/questions/42121565/detecting-class-change-without-setinterval
if (typeof(MutationObserver) !== undefined) { if (typeof(MutationObserver) !== undefined) {
var observer = new MutationObserver(function (event) { var observer = new MutationObserver(function (event) {