1031 workflows menu fixes (#12618)
## Before (not exhaustive) <img width="520" alt="image" src="https://github.com/user-attachments/assets/642365c5-f359-4ad3-8ba3-d7bb9c7d91e4" /> <img width="522" alt="image" src="https://github.com/user-attachments/assets/0819717f-84c6-436c-b9f4-20a1964cd565" /> <img width="528" alt="image" src="https://github.com/user-attachments/assets/240bf181-ec37-4e25-9fdb-c264a680abcc" /> <img width="525" alt="image" src="https://github.com/user-attachments/assets/0dfd55c1-dfbd-47ee-8741-977b5e57fa0a" /> ## After (not exhaustive) <img width="511" alt="image" src="https://github.com/user-attachments/assets/199b6e6e-be1d-4b75-8df6-d65ff05bee58" /> <img width="512" alt="image" src="https://github.com/user-attachments/assets/a92f67a8-ed58-4c4f-b401-07765158030f" /> <img width="522" alt="image" src="https://github.com/user-attachments/assets/ba3ae73a-4650-4f7f-a62a-980e6a2d21d1" /> <img width="518" alt="image" src="https://github.com/user-attachments/assets/97946870-4fba-4898-8381-9087df0b9ac4" />
This commit is contained in:
+1
@@ -53,6 +53,7 @@ export const WorkflowVariablePicker: VariablePickerComponent = ({
|
||||
onVariableSelect={onVariableSelect}
|
||||
disabled={disabled}
|
||||
objectNameSingularToSelect={objectNameSingularToSelect}
|
||||
multiline={multiline}
|
||||
/>
|
||||
</StyledSearchVariablesDropdownContainer>
|
||||
);
|
||||
|
||||
+6
-1
@@ -37,11 +37,13 @@ export const WorkflowVariablesDropdown = ({
|
||||
onVariableSelect,
|
||||
disabled,
|
||||
objectNameSingularToSelect,
|
||||
multiline,
|
||||
}: {
|
||||
inputId: string;
|
||||
onVariableSelect: (variableName: string) => void;
|
||||
disabled?: boolean;
|
||||
objectNameSingularToSelect?: string;
|
||||
multiline?: boolean;
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
|
||||
@@ -132,7 +134,10 @@ export const WorkflowVariablesDropdown = ({
|
||||
)
|
||||
}
|
||||
dropdownPlacement="bottom-end"
|
||||
dropdownOffset={{ x: 2, y: 4 }}
|
||||
dropdownOffset={{
|
||||
x: parseInt(theme.spacing(0.5), 10),
|
||||
y: parseInt(theme.spacing(multiline ? 11 : 1), 10),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
+2
-1
@@ -27,6 +27,7 @@ import {
|
||||
useIcons,
|
||||
} from 'twenty-ui/display';
|
||||
import { MenuItemSelect } from 'twenty-ui/navigation';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
type WorkflowVariablesDropdownFieldItemsProps = {
|
||||
step: StepOutputSchema;
|
||||
@@ -118,7 +119,7 @@ export const WorkflowVariablesDropdownFieldItems = ({
|
||||
: options;
|
||||
|
||||
return (
|
||||
<DropdownContent>
|
||||
<DropdownContent widthInPixels={GenericDropdownContentWidth.ExtraLarge}>
|
||||
<DropdownMenuHeader
|
||||
StartComponent={
|
||||
<DropdownMenuHeaderLeftComponent
|
||||
|
||||
+2
-1
@@ -17,6 +17,7 @@ import {
|
||||
useIcons,
|
||||
} from 'twenty-ui/display';
|
||||
import { MenuItemSelect } from 'twenty-ui/navigation';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
type WorkflowVariablesDropdownObjectItemsProps = {
|
||||
step: StepOutputSchema;
|
||||
@@ -99,7 +100,7 @@ export const WorkflowVariablesDropdownObjectItems = ({
|
||||
: options;
|
||||
|
||||
return (
|
||||
<DropdownContent>
|
||||
<DropdownContent widthInPixels={GenericDropdownContentWidth.ExtraLarge}>
|
||||
<DropdownMenuHeader
|
||||
StartComponent={
|
||||
<DropdownMenuHeaderLeftComponent
|
||||
|
||||
+2
-1
@@ -9,6 +9,7 @@ import { StepOutputSchema } from '@/workflow/workflow-variables/types/StepOutput
|
||||
import { useState } from 'react';
|
||||
import { IconX, OverflowingTextWithTooltip, useIcons } from 'twenty-ui/display';
|
||||
import { MenuItem, MenuItemSelect } from 'twenty-ui/navigation';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
type WorkflowVariablesDropdownWorkflowStepItemsProps = {
|
||||
dropdownId: string;
|
||||
@@ -33,7 +34,7 @@ export const WorkflowVariablesDropdownWorkflowStepItems = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<DropdownContent>
|
||||
<DropdownContent widthInPixels={GenericDropdownContentWidth.ExtraLarge}>
|
||||
<DropdownMenuHeader
|
||||
StartComponent={
|
||||
<DropdownMenuHeaderLeftComponent
|
||||
|
||||
Reference in New Issue
Block a user