feat: update FlowgramNodeRenderer port colors and add hover effects for improved interactivity

This commit is contained in:
mlogclub
2026-06-28 20:27:07 +08:00
parent 80ff6d40db
commit 2db52b90ff
2 changed files with 15 additions and 2 deletions
@@ -29,9 +29,10 @@ export function FlowgramNodeRenderer(props: WorkflowNodeProps) {
selected ? "border-(--g-selection-background)" : "border-transparent"
)}
style={{ padding: 0 }}
portPrimaryColor="var(--g-selection-background)"
portClassName="workflow-node-port"
portPrimaryColor="#2575FC"
portSecondaryColor="#c9cdd4"
portBackgroundColor="hsl(var(--background))"
portBackgroundColor="#FFFFFF"
>
{form?.render()}
</WorkflowNodeRenderer>
+12
View File
@@ -366,3 +366,15 @@
@apply font-sans;
}
}
.workflow-node-port:hover .bg:not(.hasError),
.workflow-node-port.hovered .bg:not(.hasError) {
cursor: crosshair;
transform: scale(1, 1) !important;
background: #2575fc !important;
}
.workflow-node-port:hover .bg > .symbol,
.workflow-node-port.hovered .bg > .symbol {
opacity: 1 !important;
}