feat(chat): make input editor expandable up to 3 lines (#204)

The chat input now grows as you type, from 1 line up to approximately
3 lines before showing a scrollbar. This improves UX when composing
longer messages by providing better visibility of the content.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Alejandro
2026-01-22 20:53:01 +01:00
committed by GitHub
parent 0ebe1ec3da
commit 4e8a8a0e90

View File

@@ -1026,7 +1026,7 @@ export const MentionEditor = forwardRef<
return (
<div
className={`rounded border bg-background transition-colors focus-within:border-primary h-7 flex items-center overflow-hidden px-2 ${className}`}
className={`rounded border bg-background transition-colors focus-within:border-primary min-h-7 max-h-20 flex items-start overflow-y-auto py-1 px-2 ${className}`}
>
<EditorContent editor={editor} className="flex-1 min-w-0" />
</div>