Update chat

This commit is contained in:
anhkha2003 2023-09-23 17:41:36 -05:00
parent db37cb4c40
commit 10f3390f3a
4 changed files with 33 additions and 12 deletions

View file

@ -558,5 +558,17 @@
}
register_setting();
color_selected_room();
// Adjust textarea height to fit the content
$(document).ready(function() {
$('#chat-input').on('input', function() {
if (this.scrollHeight > this.clientHeight) {
this.style.height = 'auto';
this.style.height = (this.scrollHeight) + 'px';
} else {
$(this).css('height', '80%');
}
});
});
});
</script>