From 90c28c93ad55632e977bfb7462ee68ee3313f1e1 Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Wed, 29 Jan 2025 23:55:45 -0800 Subject: [PATCH] Made horizontal action bar to the right of the workflow block --- .../components/action-bar/action-bar.tsx | 63 +++++++++++-------- 1 file changed, 38 insertions(+), 25 deletions(-) diff --git a/app/w/components/workflow-block/components/action-bar/action-bar.tsx b/app/w/components/workflow-block/components/action-bar/action-bar.tsx index da057c2f77..e986bca027 100644 --- a/app/w/components/workflow-block/components/action-bar/action-bar.tsx +++ b/app/w/components/workflow-block/components/action-bar/action-bar.tsx @@ -6,6 +6,7 @@ import { TooltipContent, TooltipTrigger, } from '@/components/ui/tooltip' +import { cn } from '@/lib/utils' interface ActionBarProps { blockId: string @@ -22,33 +23,22 @@ export function ActionBar({ blockId }: ActionBarProps) { ) return ( -
+
- Delete Block - - - - - - - Duplicate Block + Run Block @@ -66,15 +56,38 @@ export function ActionBar({ blockId }: ActionBarProps) { )} - + {isEnabled ? 'Disable Block' : 'Enable Block'} - + + + + + Duplicate Block + + + + + + + Delete Block +
) }