소스 검색

fix: chat input variable styling issue

Timothy J. Baek 1 년 전
부모
커밋
52fb09ff95
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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"