From 7e07b3f7e9cb6e012dad26db10ae3c9c6cc5fc2b Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Tue, 1 Apr 2025 16:11:06 +0200 Subject: [PATCH] Fix dropdown height and scroll in workflows (#11324) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before Capture d’écran 2025-04-01 à 15 58 41 After Capture d’écran 2025-04-01 à 15 58 28 --- .../components/WorkflowVariablesDropdownFieldItems.tsx | 4 ++-- .../components/WorkflowVariablesDropdownObjectItems.tsx | 4 ++-- .../components/WorkflowVariablesDropdownWorkflowStepItems.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownFieldItems.tsx b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownFieldItems.tsx index 67bf4c0dc..606a52408 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownFieldItems.tsx +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdownFieldItems.tsx @@ -20,13 +20,13 @@ import { getStepHeaderLabel } from '@/workflow/workflow-variables/utils/getStepH import { isLinkOutputSchema } from '@/workflow/workflow-variables/utils/isLinkOutputSchema'; import { useState } from 'react'; import { useSetRecoilState } from 'recoil'; +import { isDefined } from 'twenty-shared/utils'; import { IconChevronLeft, MenuItemSelect, OverflowingTextWithTooltip, useIcons, } from 'twenty-ui'; -import { isDefined } from 'twenty-shared/utils'; type WorkflowVariablesDropdownFieldItemsProps = { step: StepOutputSchema; @@ -136,7 +136,7 @@ export const WorkflowVariablesDropdownFieldItems = ({ onChange={(event) => setSearchInputValue(event.target.value)} /> - + {filteredOptions.map(([key, subStep]) => ( setSearchInputValue(event.target.value)} /> - + {shouldDisplaySubStepObject && displayedSubStepObject?.label && ( setSearchInputValue(event.target.value)} /> - + {availableSteps.length > 0 ? ( availableSteps.map((item, _index) => (