Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: reset height after send (#7755)

darkskygitf93743dae6b0
diff --git a/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts b/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts
index abdbb748f8..6aac1f20dd 100644
--- a/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts
+++ b/packages/frontend/core/src/blocksuite/presets/ai/chat-panel/chat-panel-input.ts
@@ -423,6 +423,7 @@ export class ChatPanelInput extends WithDisposable(LitElement) {
const { doc } = this.host;
this.textarea.value = '';
this.isInputEmpty = true;
+ this.textarea.style.height = 'unset';
this.updateContext({
images: [],
status: 'loading',