Skip to content

Commit a8d0fbf

Browse files
author
nicosammito
committed
feat: simplify flow creation button in FlowFolderView with label and improved styling
1 parent f501434 commit a8d0fbf

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

src/packages/ce/src/flow/views/FlowFolderView.tsx

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,22 +89,13 @@ export const FlowFolderView: React.FC = () => {
8989
</Button>
9090
</Flex>
9191
<Flex style={{gap: "0.35rem"}} align={"center"} justify={"space-between"}>
92-
<Tooltip>
93-
<TooltipTrigger asChild>
94-
<Button color={"tertiary"} paddingSize={"xxs"} onClick={() => {
95-
setCreateDialogOpen(true)
96-
setFlowTypeId(undefined)
97-
}}>
98-
<IconPlus size={13}/>
99-
</Button>
100-
</TooltipTrigger>
101-
<TooltipPortal>
102-
<TooltipContent side={"bottom"}>
103-
<Text>Add new flow</Text>
104-
<TooltipArrow/>
105-
</TooltipContent>
106-
</TooltipPortal>
107-
</Tooltip>
92+
<Button color={"tertiary"} paddingSize={"xxs"} style={{textWrap: "nowrap"}} onClick={() => {
93+
setCreateDialogOpen(true)
94+
setFlowTypeId(undefined)
95+
}}>
96+
<IconPlus size={13}/>
97+
Create flow
98+
</Button>
10899
<ButtonGroup color={"secondary"} style={{boxShadow: "none"}} p={0}>
109100
<Tooltip>
110101
<TooltipTrigger asChild>

0 commit comments

Comments
 (0)