Skip to content

Commit af19ed2

Browse files
feat(web): Add max height with scroll to chat input box
Prevents the chat box from growing unboundedly when a user pastes a large blob of text. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d476e3f commit af19ed2

File tree

1 file changed

+1
-1
lines changed
  • packages/web/src/features/chat/components/chatBox

1 file changed

+1
-1
lines changed

packages/web/src/features/chat/components/chatBox/chatBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const ChatBoxComponent = ({
298298
className={cn("flex flex-col justify-between gap-0.5 w-full px-3 py-2", className)}
299299
>
300300
<Editable
301-
className="w-full focus-visible:outline-none focus-visible:ring-0 bg-background text-base disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
301+
className="w-full focus-visible:outline-none focus-visible:ring-0 bg-background text-base disabled:cursor-not-allowed disabled:opacity-50 md:text-sm max-h-64 overflow-y-auto"
302302
placeholder="Ask a question about your code. @mention files or select search scopes to refine your query."
303303
renderElement={renderElement}
304304
renderLeaf={renderLeaf}

0 commit comments

Comments
 (0)