From 89427dab11dd725e82d0295f8487be6df82f5d65 Mon Sep 17 00:00:00 2001 From: Fusion Agent Date: Thu, 20 Aug 2026 19:46:40 +0000 Subject: [PATCH] FN-076: disable chat textarea mouse resizing Disable mouse-driven composer resizing while preserving automatic five-line sizing across chat surfaces. - Remove pointer-based manual resize handling and related CSS affordances. - Apply consistent autosizing and shrink-to-minimum behavior to all chat composers. - Update regression coverage, documentation, and the published package changeset. Files changed: .changeset/fn-076-removal.md | 7 ++ docs/dashboard-guide.md | 6 +- .../app/components/ChatQuestionResponse.css | 4 +- .../app/components/ChatQuestionResponse.tsx | 23 ++-- packages/dashboard/app/components/ChatView.css | 8 +- packages/dashboard/app/components/ChatView.tsx | 18 +-- .../dashboard/app/components/ComposeChatPanel.css | 4 +- .../dashboard/app/components/ComposeChatPanel.tsx | 20 +++- .../app/components/StandardChatSurface.tsx | 20 +++- packages/dashboard/app/components/TaskChatTab.css | 4 +- packages/dashboard/app/components/TaskChatTab.tsx | 12 +- .../app/components/TaskPlannerChatTab.css | 4 +- .../app/components/TaskPlannerChatTab.tsx | 8 +- .../__tests__/ChatQuestionResponse.test.tsx | 38 ++++++ .../__tests__/ChatView.autosize.test.tsx | 26 ++-- .../ChatView.chat-input-autosize.test.tsx | 61 ++-------- .../__tests__/ChatView.message-edit.test.tsx | 10 ++ .../components/__tests__/ComposeChatPanel.test.tsx | 25 ++++ .../app/components/__tests__/TaskChatTab.test.tsx | 13 +- .../__tests__/TaskPlannerChatTab.test.tsx | 13 +- packages/dashboard/app/utils/chatInputAutosize.ts | 132 ++------------------- 21 files changed, 195 insertions(+), 261 deletions(-) Fusion-Task-Id: FN-076 Fusion-Task-Lineage: d4580427-640b-41c1-b5d1-837da43c7438 Co-authored-by: Fusion --- .changeset/fn-076-removal.md | 7 + docs/dashboard-guide.md | 6 +- .../app/components/ChatQuestionResponse.css | 4 +- .../app/components/ChatQuestionResponse.tsx | 23 +-- .../dashboard/app/components/ChatView.css | 8 +- .../dashboard/app/components/ChatView.tsx | 18 +-- .../app/components/ComposeChatPanel.css | 4 +- .../app/components/ComposeChatPanel.tsx | 20 ++- .../app/components/StandardChatSurface.tsx | 20 ++- .../dashboard/app/components/TaskChatTab.css | 4 +- .../dashboard/app/components/TaskChatTab.tsx | 12 +- .../app/components/TaskPlannerChatTab.css | 4 +- .../app/components/TaskPlannerChatTab.tsx | 8 +- .../__tests__/ChatQuestionResponse.test.tsx | 38 +++++ .../__tests__/ChatView.autosize.test.tsx | 26 ++-- .../ChatView.chat-input-autosize.test.tsx | 61 ++------ .../__tests__/ChatView.message-edit.test.tsx | 10 ++ .../__tests__/ComposeChatPanel.test.tsx | 25 ++++ .../components/__tests__/TaskChatTab.test.tsx | 13 +- .../__tests__/TaskPlannerChatTab.test.tsx | 13 +- .../dashboard/app/utils/chatInputAutosize.ts | 132 ++---------------- 21 files changed, 195 insertions(+), 261 deletions(-) create mode 100644 .changeset/fn-076-removal.md diff --git a/.changeset/fn-076-removal.md b/.changeset/fn-076-removal.md new file mode 100644 index 0000000000..12de53b1ab --- /dev/null +++ b/.changeset/fn-076-removal.md @@ -0,0 +1,7 @@ +--- +"@runfusion/fusion": patch +--- + +summary: Keep dashboard chat textareas automatic through five lines without mouse resizing. +category: fix +dev: Chat composers now use the shared automatic-only five-line autosize controller and shrink after content is removed or cleared. diff --git a/docs/dashboard-guide.md b/docs/dashboard-guide.md index d93a2db204..52f3269f2e 100644 --- a/docs/dashboard-guide.md +++ b/docs/dashboard-guide.md @@ -743,8 +743,8 @@ Use **Settings → Appearance → Conversation layout** to choose the project-sc Ordinary Markdown links in Direct Chat, Chat Rooms, Quick Chat, floating/dock Chat, and task-detail Planner Chat open in a new browser tab and include the safe `noopener noreferrer` relationship. They retain the complete sanitized destination and use the shared readable, always-underlined Chat treatment on desktop and mobile. Native `fusion://` structure references continue to open their preview cards, file-path controls keep their in-app navigation, and terminal-only CLI output plus separate non-Chat Markdown surfaces are outside this link contract. - -Primary Chat, Rooms, Activity, and task Chat composers grow automatically through five rendered lines, then scroll excess text inside the input. On desktop and tablet, drag the native vertical resize affordance to enlarge the current draft; that manual height is in-memory only, is not saved, and resets when the draft is cleared, sent, or the conversation/task target changes. Mobile keeps the composer compact, capped at five lines, and internally scrolling without advertising a mouse-only resize affordance. + +Every dashboard chat textarea—Primary Chat, Rooms, Activity, task Planner Chat, message correction, question responses, and Compose Chat—grows automatically through five rendered lines and scrolls additional text inside the input. It shrinks as content is removed and returns to its minimum height when cleared. Mouse resizing is unavailable on desktop, tablet, and mobile. ## Mailbox archive @@ -2351,7 +2351,7 @@ const baseOnly = await loadAllAppCssBaseOnly(); // strips @media/@supports ### File browser editor & autosize textarea - `FileEditor.tsx` is CodeMirror 6-only (no `