fix: the chat's message field lower - 42px for a line instead of 52, the clip and send to scale, still centred on the last line
This commit is contained in:
1 parent
983809714b
commit
351e4ad28d
2 files changed
+9
-9
No files matched your search
@@ -885,8 +885,8 @@
|
||||
// its width and wrap the last word a character too early.
|
||||
function grow() {
|
||||
input.style.overflowY = 'hidden';
|
||||
input.style.height = '40px';
|
||||
const h = input.scrollHeight + 2;
|
||||
input.style.height = '32px';
|
||||
const h = input.scrollHeight;
|
||||
input.style.height = Math.min(140, h) + 'px';
|
||||
input.style.overflowY = h > 140 ? 'auto' : 'hidden';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user