Undo docstring changes

This commit is contained in:
Joe 2024-11-17 18:44:23 -08:00
parent 328e3622f2
commit 17cce528f8

View File

@ -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);