The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix code container display (#17666)
Thomas Trompettef2284579f0d4
diff --git a/packages/twenty-ui/src/input/code-editor/components/CodeEditor.tsx b/packages/twenty-ui/src/input/code-editor/components/CodeEditor.tsxindex c89d80d329c..803b6ff6f0c 100644--- a/packages/twenty-ui/src/input/code-editor/components/CodeEditor.tsx+++ b/packages/twenty-ui/src/input/code-editor/components/CodeEditor.tsx@@ -51,6 +51,10 @@ const StyledEditorLoader = styled.div<{}}`;+const StyledCodeEditorContainer = styled.div`+ display: contents;+`;+const StyledEditor = styled(Editor)<{variant: CodeEditorVariant;transparentBackground?: boolean;@@ -140,7 +144,7 @@ export const CodeEditor = ({<Loader /></StyledEditorLoader>) : (- <div onKeyDown={handleKeyDown}>+ <StyledCodeEditorContainer onKeyDown={handleKeyDown}><inputtype="hidden"data-testid="code-editor-value"@@ -199,6 +203,6 @@ export const CodeEditor = ({...options,}}/>- </div>+ </StyledCodeEditorContainer>);};