From ba8958f39b5f81f9c201da083282f737b7ae885a Mon Sep 17 00:00:00 2001 From: donteatfriedrice Date: Thu, 15 Aug 2024 08:08:00 +0000 Subject: [PATCH] fix: chat block peek view input reset height (#7884) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [BS-1202](https://linear.app/affine-design/issue/BS-1202/ai-chat-block-输入大段内容发送后输入框-resize-问题) --- .../core/src/blocksuite/presets/ai/peek-view/chat-block-input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/core/src/blocksuite/presets/ai/peek-view/chat-block-input.ts b/packages/frontend/core/src/blocksuite/presets/ai/peek-view/chat-block-input.ts index d7c9d58069..98f3bc5522 100644 --- a/packages/frontend/core/src/blocksuite/presets/ai/peek-view/chat-block-input.ts +++ b/packages/frontend/core/src/blocksuite/presets/ai/peek-view/chat-block-input.ts @@ -362,6 +362,7 @@ export class ChatBlockInput extends LitElement { const { doc } = this.host; this.textarea.value = ''; this._isInputEmpty = true; + this.textarea.style.height = 'unset'; this.updateContext({ images: [], status: 'loading',