Correctly auto-size textarea in firefox.

This commit is contained in:
Webifi 2023-05-28 14:25:47 -05:00
parent 8841cfa859
commit 9b50517c38
1 changed files with 5 additions and 2 deletions

View File

@ -575,7 +575,7 @@
}
const autoGrowInput = (el: HTMLTextAreaElement) => {
el.style.height = 'auto'
el.style.height = '38px'; // don't use "auto" here. Firefox will over-size.
el.style.height = el.scrollHeight + 'px'
}
@ -980,4 +980,7 @@
.running-totals {
opacity: 0.5;
}
.chat-input {
/* padding:0; */
}
</style>