mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Correctly auto-size textarea in firefox.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user