Skip to content

Commit 482c787

Browse files
committed
make <textarea> render the text instead of overlay
1 parent fa18c13 commit 482c787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/components/EditAgent/SensorInputText.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const SensorInputText: React.FC<SensorInputTextProps> = ({
6767
<div className={`relative ${className}`}>
6868
<div
6969
ref={overlayRef}
70-
className="absolute inset-0 p-4 font-mono text-sm whitespace-pre-wrap pointer-events-none leading-relaxed overflow-hidden"
70+
className="absolute inset-0 p-4 font-mono text-sm text-transparent whitespace-pre-wrap pointer-events-none leading-relaxed overflow-hidden"
7171
aria-hidden="true"
7272
>
7373
{highlightPrompt(value)}
@@ -78,7 +78,7 @@ const SensorInputText: React.FC<SensorInputTextProps> = ({
7878
onChange={(e) => onChange(e.target.value)}
7979
onScroll={handleScroll}
8080
rows={rows}
81-
className="w-full h-full p-4 bg-transparent text-transparent caret-blue-500 border border-gray-300 rounded-lg font-mono text-sm resize-none focus:ring-2 focus:ring-blue-500 leading-relaxed"
81+
className="w-full h-full p-4 bg-transparent text-gray-900 caret-blue-500 border border-gray-300 rounded-lg font-mono text-sm resize-none focus:ring-2 focus:ring-blue-500 leading-relaxed"
8282
placeholder={placeholder}
8383
/>
8484
</div>

0 commit comments

Comments
 (0)