Fixed stroke color on dark mode
This commit is contained in:
parent
c9403b6433
commit
6f80c7a6c2
1 changed files with 4 additions and 3 deletions
|
|
@ -151,10 +151,11 @@ export default function FlowPage({ flow }: { flow: FlowType }) {
|
||||||
addEdge(
|
addEdge(
|
||||||
{
|
{
|
||||||
...params,
|
...params,
|
||||||
style:
|
style: { stroke: "inherit" },
|
||||||
|
className:
|
||||||
params.targetHandle.split("|")[0] === "Text"
|
params.targetHandle.split("|")[0] === "Text"
|
||||||
? { stroke: "#333333", strokeWidth: 2 }
|
? "stroke-gray-800 dark:stroke-gray-300"
|
||||||
: { stroke: "#555555" },
|
: "stroke-gray-900 dark:stroke-gray-200",
|
||||||
animated: params.targetHandle.split("|")[0] === "Text",
|
animated: params.targetHandle.split("|")[0] === "Text",
|
||||||
},
|
},
|
||||||
eds
|
eds
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue