Skip to content

Commit b917b64

Browse files
committed
changed logic for minimap color rendering
1 parent 5c0e9d2 commit b917b64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/webview/Flow.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const OverviewFlow = () => {
6060
<MiniMap
6161
nodeStrokeColor={(n) => {
6262
if (n.style?.background) return n.style.background;
63-
if (n.type === "input") return "#fdba74";
64-
if (n.type === "output") return "#93C5FD";
63+
if (n.data.label.props.className.includes('orange')) return "#fdba74";
64+
if (n.data.label.props.className.includes('blue')) return "#93C5FD";
6565
if (n.type === "default") return "#1a192b";
6666

6767
return "#eee";

src/webview/flowBuilder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class FlowBuilder {
3232
)
3333
},
3434
// type: item.depth === 0 ? 'input' : '',
35-
type: item.isClientComponent ? 'input' : 'output',
36-
// type: 'default',
35+
// type: item.isClientComponent ? 'input' : 'output',
36+
type: 'default',
3737
position: { x: 0, y: 0 },
3838
style: {
3939
border: 'none',

0 commit comments

Comments
 (0)