fix: Overflow in terminal input (#544)

This commit is contained in:
Brace Sproul 2025-07-26 13:48:28 -07:00 • committed by GitHub
parent 425f588be4
commit bd9e1969b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,14 +200,14 @@ export function TerminalInput({
</div>
{/* Multiline Input */}
<div className="mt-2 flex gap-2">
<div className="my-2 flex gap-2">
<Textarea
value={message}
onChange={(e) => setMessage(e.target.value)}
onKeyDown={handleKeyPress}
placeholder={placeholder}
disabled={disabled}
className="text-foreground placeholder:text-muted-foreground min-h-[80px] flex-1 resize-none border-none bg-transparent p-0 font-mono text-xs shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"
className="text-foreground placeholder:text-muted-foreground max-h-[50vh] min-h-[80px] flex-1 resize-none border-none bg-transparent p-0 font-mono text-xs shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"
rows={6}
onPaste={onPaste}
/>