diff --git a/src/components/codefield/CodeField.tsx b/src/components/codefield/CodeField.tsx index d332360d..a253d22c 100644 --- a/src/components/codefield/CodeField.tsx +++ b/src/components/codefield/CodeField.tsx @@ -26,6 +26,7 @@ export type CodeFieldProps = { readOnly?: ReactCodeMirrorProps["readOnly"]; onChange?: ReactCodeMirrorProps["onChange"]; size?: CODE_FIELD_SIZE; + codeMirrorClassName?: number; } & HTMLAttributes; const CodeFieldRenderFunction: ForwardRefRenderFunction = ( @@ -42,6 +43,7 @@ const CodeFieldRenderFunction: ForwardRefRenderFunction {displayCopy && ( ({ ...expandProperty("padding", "24px"), display: "flex", justifyContent: "space-between", - alignItems: "center", + alignItems: "flex-start", flexWrap: "nowrap", gap: "16px", ...expandProperty("transition", "background 0.15s"), @@ -23,6 +23,7 @@ const getContainerStyles = (size: CODE_FIELD_SIZE): StyleObject => ({ const codemirrorStyles: StyleObject = { minWidth: 0, + flexGrow: 1, ":focus-within .cm-editor": { outline: "none", },