mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-08 22:47:02 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user