Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change blocks input to textarea

Tomas Valentae03dea10f837
diff --git a/components/Editor/BodyBlock.tsx b/components/Editor/BodyBlock.tsx
index e29ff65b4..46ee9bb6b 100644
--- a/components/Editor/BodyBlock.tsx
+++ b/components/Editor/BodyBlock.tsx
@@ -85,13 +85,12 @@ export default function BodyBlock({ onChange, onDelete, block }: Props) {
/>
</button>
</div>
- <input
+ <textarea
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"
name="block"
placeholder="Prompt"
- type="text"
value={block.prompt}
onChange={e => onChange({ ...block, prompt: e.target.value })}
className={clsx(
@@ -99,8 +98,7 @@ export default function BodyBlock({ onChange, onDelete, block }: Props) {
'px-4',
'py-2',
'rounded-lg',
- 'transition-all',
- 'focus:rounded-full',
+ 'transition-colors',
'border',
'hover:border-green-800/40',
'border-slate-200',