Make the chat input expand upwards (#3920)

This commit is contained in:
oobabooga 2023-09-14 07:06:42 -03:00 committed by GitHub
parent 6b6af74e14
commit 27dbcc59f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 14 deletions

View file

@ -332,6 +332,12 @@ for (var i = 0; i < 2; i++) {
parent.insertBefore(elementToMove, parent.firstChild);
//------------------------------------------------
// Make the chat input grow upwards instead of downwards
//------------------------------------------------
document.getElementById('show-controls').parentNode.style.position = 'absolute';
document.getElementById('show-controls').parentNode.style.bottom = '0px';
//------------------------------------------------
// Focus on the chat input
//------------------------------------------------