frontend: add prompt auto expand

This commit is contained in:
Qing
2024-02-16 10:06:35 +08:00
parent b3d334e26e
commit ed1f7c9e28
2 changed files with 38 additions and 25 deletions

View File

@@ -11,8 +11,8 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
<textarea
className={cn(
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
className,
"overflow-auto"
"overflow-auto",
className
)}
tabIndex={-1}
ref={ref}