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

before (introduced by https://github.com/twentyhq/twenty/pull/23657)
<img width="381" height="736" alt="Screenshot 2026-08-05 at 15 18 38"
src="https://github.com/user-attachments/assets/91d5d1de-bffb-4508-a488-2fe6a09eca61"
/>

after
<img width="1308" height="748" alt="image"
src="https://github.com/user-attachments/assets/06a9b875-6cde-47c6-a23f-f9a1f268db42"
/>


## Problem

In the workflow Send Email action panel, the Body editor painted over
the Attachments section when the panel was shorter than the editor's
minimum height.
This commit is contained in:
Marie
2026-08-05 16:00:18 +02:00
committed by GitHub
parent 4137a1f9fc
commit 5b6734691c
2 changed files with 4 additions and 4 deletions
@@ -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')};
}
`;
@@ -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) => [