From b7c29cdebdb1e108939981111f7bc03261d3d257 Mon Sep 17 00:00:00 2001 From: Biswajeet Das Date: Wed, 18 Dec 2024 15:01:24 +0530 Subject: [PATCH 1/2] feat(dashboard): update node styles --- .../src/components/workflow-editor/base-node.tsx | 8 ++++---- apps/dashboard/src/components/workflow-editor/nodes.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/src/components/workflow-editor/base-node.tsx b/apps/dashboard/src/components/workflow-editor/base-node.tsx index 430c2263222..56ce76c0594 100644 --- a/apps/dashboard/src/components/workflow-editor/base-node.tsx +++ b/apps/dashboard/src/components/workflow-editor/base-node.tsx @@ -66,7 +66,7 @@ export const NodeBody = ({ children }: { children: ReactNode }) => { {children} - + ); }; @@ -98,11 +98,11 @@ export const NODE_WIDTH = 300; export const NODE_HEIGHT = 86; const nodeVariants = cva( - `relative border-neutral-alpha-200 transition-colors aria-selected:border-primary bg-foreground-0 flex w-[300px] flex-col gap-1 border p-1 shadow-xs`, + `relative bg-neutral-alpha-200 transition-colors aria-selected:bg-gradient-to-tr aria-selected:to-warning/50 aria-selected:from-destructive/60 [&>span]:bg-foreground-0 flex w-[300px] flex-col gap-1 p-px shadow-xs flex [&>span]:flex-1 [&>span]:rounded-[calc(var(--radius)-1px)]`, { variants: { variant: { - default: 'rounded-xl', + default: 'rounded-lg', sm: 'text-neutral-400 w-min rounded-lg', }, }, @@ -118,7 +118,7 @@ export const Node = (props: BaseNodeProps) => { const { children, variant, className, ...rest } = props; return (
- {children} + {children}
); }; diff --git a/apps/dashboard/src/components/workflow-editor/nodes.tsx b/apps/dashboard/src/components/workflow-editor/nodes.tsx index 32816bcd7c6..3e54b3a2ae8 100644 --- a/apps/dashboard/src/components/workflow-editor/nodes.tsx +++ b/apps/dashboard/src/components/workflow-editor/nodes.tsx @@ -37,8 +37,8 @@ export const TriggerNode = ({ data }: NodeProps - -
+ +
TRIGGER
From 54fca3cd1a329187f9ec66175ddf7971f451db85 Mon Sep 17 00:00:00 2001 From: Biswajeet Das Date: Wed, 18 Dec 2024 16:36:15 +0530 Subject: [PATCH 2/2] feat(workflow-editor): enhance node styling for improved layout --- apps/dashboard/src/components/workflow-editor/base-node.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/components/workflow-editor/base-node.tsx b/apps/dashboard/src/components/workflow-editor/base-node.tsx index 56ce76c0594..5c0c0554bcd 100644 --- a/apps/dashboard/src/components/workflow-editor/base-node.tsx +++ b/apps/dashboard/src/components/workflow-editor/base-node.tsx @@ -98,7 +98,7 @@ export const NODE_WIDTH = 300; export const NODE_HEIGHT = 86; const nodeVariants = cva( - `relative bg-neutral-alpha-200 transition-colors aria-selected:bg-gradient-to-tr aria-selected:to-warning/50 aria-selected:from-destructive/60 [&>span]:bg-foreground-0 flex w-[300px] flex-col gap-1 p-px shadow-xs flex [&>span]:flex-1 [&>span]:rounded-[calc(var(--radius)-1px)]`, + `relative bg-neutral-alpha-200 transition-colors aria-selected:bg-gradient-to-tr aria-selected:to-warning/50 aria-selected:from-destructive/60 [&>span]:bg-foreground-0 flex w-[300px] flex-col p-px shadow-xs flex [&>span]:flex-1 [&>span]:rounded-[calc(var(--radius)-1px)] [&>span]:p-1 [&>span]:flex [&>span]:flex-col [&>span]:gap-1`, { variants: { variant: {