Browse Source

fix: chat input variable styling issue

Timothy J. Baek 1 year ago
parent
commit
52fb09ff95
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/components/chat/MessageInput.svelte

+ 3 - 0
src/lib/components/chat/MessageInput.svelte

@@ -828,6 +828,9 @@
 											e.preventDefault();
 											e.target.setSelectionRange(word?.startIndex, word.endIndex + 1);
 										}
+
+										e.target.style.height = '';
+										e.target.style.height = Math.min(e.target.scrollHeight, 200) + 'px';
 									}
 								}}
 								rows="1"