diff --git a/src/components/input/ToolCodeInput.tsx b/src/components/input/ToolCodeInput.tsx index a532f56d..d223ec12 100644 --- a/src/components/input/ToolCodeInput.tsx +++ b/src/components/input/ToolCodeInput.tsx @@ -65,7 +65,8 @@ export default function ToolCodeInput({ > ({ - height: '100%', + flex: 1, + minHeight: 0, display: 'flex', flexDirection: 'column', backgroundColor: 'background.paper', @@ -105,6 +106,9 @@ export default function ToolCodeInput({ value={value} onChange={(value) => onChange(value ?? '')} options={{ + automaticLayout: true, + folding: true, + showFoldingControls: 'always', scrollbar: { vertical: 'visible', horizontal: 'visible',