Skip to content

The open alternative to Salesforce, designed for AI.

Fix workflow email body overflowing into the attachments section (#23810)

Marie5b6734691c31
diff --git a/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx b/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx
index 62d82482735..f3dc9647ef7 100644
--- a/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx
+++ b/packages/twenty-front/src/modules/advanced-text-editor/components/FormAdvancedTextFieldInput.tsx
@@ -28,14 +28,14 @@ const StyledAdvancedTextFieldContainerWrapper = styled.div<{
}>`
display: flex;
flex-direction: column;
- flex-grow: 1;
- min-height: 0;
+ flex-grow: ${({ hasFieldChrome }) => (hasFieldChrome ? 0 : 1)};
+ min-height: ${({ hasFieldChrome }) => (hasFieldChrome ? 'auto' : '0')};
/* Document editors stretch to their available height; field editors keep
their intrinsic height so they compose naturally inside forms. */
& > * {
flex-grow: ${({ hasFieldChrome }) => (hasFieldChrome ? 0 : 1)};
- min-height: 0;
+ min-height: ${({ hasFieldChrome }) => (hasFieldChrome ? 'auto' : '0')};
}
`;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/WorkflowEmailBodyEditorProfile.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/WorkflowEmailBodyEditorProfile.ts
index 1cf82fcda1b..26f2b579ff3 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/WorkflowEmailBodyEditorProfile.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/constants/WorkflowEmailBodyEditorProfile.ts
@@ -5,7 +5,7 @@ import { WorkflowVariableTag } from '@/workflow/workflow-variables/extensions/Wo
export const WORKFLOW_EMAIL_BODY_EDITOR_PROFILE = {
chrome: 'field',
- minHeight: 340,
+ minHeight: 200,
enableFullScreen: true,
parseLegacyDocument: parseLegacyWorkflowEmailBodyDocument,
buildExtensions: (context) => [