mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Fixed textarea whitespace visual bug
This commit is contained in:
@@ -84,7 +84,7 @@ export function LongInput({
|
||||
<Textarea
|
||||
ref={textareaRef}
|
||||
className={cn(
|
||||
'w-full resize-none placeholder:text-muted-foreground/50 allow-scroll text-transparent caret-foreground',
|
||||
'w-full resize-none placeholder:text-muted-foreground/50 allow-scroll text-transparent caret-foreground break-words whitespace-pre-wrap',
|
||||
isConnecting &&
|
||||
'focus-visible:ring-blue-500 ring-2 ring-blue-500 ring-offset-2'
|
||||
)}
|
||||
@@ -98,7 +98,7 @@ export function LongInput({
|
||||
/>
|
||||
<div
|
||||
ref={overlayRef}
|
||||
className="absolute inset-0 pointer-events-none px-3 py-2 overflow-auto whitespace-pre-wrap scrollbar-none text-sm bg-transparent"
|
||||
className="absolute inset-0 pointer-events-none px-3 py-2 overflow-auto whitespace-pre-wrap break-words scrollbar-none text-sm bg-transparent"
|
||||
>
|
||||
{formatDisplayText(value?.toString() ?? '')}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user