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:
redtea committed 2026-10-17 14:47:42 +03:00
1 parent 983809714b
commit 351e4ad28d
2 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -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';
}