Add constraints on bot code editor window size

This commit is contained in:
Jack Kingsman
2026-01-27 19:21:38 -08:00
parent 31e31ee7da
commit 6bdc1ecefb
8 changed files with 45 additions and 34 deletions

View File

@@ -10,19 +10,21 @@ interface BotCodeEditorProps {
export function BotCodeEditor({ value, onChange, id }: BotCodeEditorProps) {
return (
<CodeMirror
value={value}
onChange={onChange}
extensions={[python()]}
theme={oneDark}
height="256px"
basicSetup={{
lineNumbers: true,
foldGutter: false,
highlightActiveLine: true,
}}
className="rounded-md border border-input overflow-hidden text-sm"
id={id}
/>
<div className="w-full overflow-hidden rounded-md border border-input">
<CodeMirror
value={value}
onChange={onChange}
extensions={[python()]}
theme={oneDark}
height="256px"
basicSetup={{
lineNumbers: true,
foldGutter: false,
highlightActiveLine: true,
}}
className="text-sm"
id={id}
/>
</div>
);
}