mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-22 22:57:21 +02:00
Undo docstring changes
This commit is contained in:
parent
328e3622f2
commit
17cce528f8
@ -699,8 +699,7 @@ const chatBlock = document.getElementById('chat');
|
|||||||
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resizes the chat input textarea vertically to match its text content, up to a maximum height defined in CSS.
|
* this makes the chat input text area resize vertically to match the text size (limited by CSS at 50% window height)
|
||||||
* Preserves scroll position in Chrome. In Firefox, the textarea grows to cover the chat history.
|
|
||||||
*/
|
*/
|
||||||
function autoFitSendTextArea() {
|
function autoFitSendTextArea() {
|
||||||
const originalScrollBottom = chatBlock.scrollHeight - (chatBlock.scrollTop + chatBlock.offsetHeight);
|
const originalScrollBottom = chatBlock.scrollHeight - (chatBlock.scrollTop + chatBlock.offsetHeight);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user