浏览代码

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"