Przeglądaj źródła

添加ai对话框

xiaoguang_li 1 miesiąc temu
rodzic
commit
0149ed274e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -2887,7 +2887,7 @@ from desktop.views import _ko
       ChatPanel.prototype.autoResize = function (data, event) {
       ChatPanel.prototype.autoResize = function (data, event) {
         let inputArea = event.target;
         let inputArea = event.target;
         inputArea.style.height = 'auto';
         inputArea.style.height = 'auto';
-        inputArea.style.height = inputArea.scrollHeight + 'px';
+        inputArea.style.height = inputArea.scrollHeight -23 + 'px';
       };
       };
 
 
       // 滚动到底部函数
       // 滚动到底部函数