From 10135564fa925191f9135bc771020b0f2048b195 Mon Sep 17 00:00:00 2001 From: Hank Zhang Date: Wed, 17 Jun 2026 12:16:09 +0800 Subject: [PATCH] feat: increase input textarea max-height from 120px to 200px The chat input already auto-resizes, but capped at 120px (~3 lines). Bump to 200px (~6 lines) so longer messages are more comfortable to compose before the scrollbar kicks in. --- src/renderer/src/assets/main.css | 2 +- src/renderer/src/screens/Chat/ChatInput.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index a1585ad6a..a1e25bc88 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -3440,7 +3440,7 @@ body { outline: none; resize: none; min-height: 20px; - max-height: 120px; + max-height: 200px; overflow-y: auto; line-height: 1.4; box-sizing: border-box; diff --git a/src/renderer/src/screens/Chat/ChatInput.tsx b/src/renderer/src/screens/Chat/ChatInput.tsx index 9efa20a2b..6ebdfd256 100644 --- a/src/renderer/src/screens/Chat/ChatInput.tsx +++ b/src/renderer/src/screens/Chat/ChatInput.tsx @@ -292,7 +292,7 @@ export const ChatInput = forwardRef( const target = e.target; requestAnimationFrame(() => { target.style.height = "auto"; - target.style.height = `${Math.min(target.scrollHeight, 120)}px`; + target.style.height = `${Math.min(target.scrollHeight, 200)}px`; }); if (value.startsWith("/") && !value.includes(" ")) {