Use valid canvas connection colors

This commit is contained in:
Codex
2026-05-11 22:29:33 +08:00
parent 46cca0d4e1
commit 1f721b62b1

View File

@@ -853,7 +853,7 @@ function FlowCanvasInner({
const movingRef = useRef(false);
const paneClickTimerRef = useRef<number | null>(null);
const isDarkTheme = resolvedTheme === 'dark';
const edgeStroke = isDarkTheme ? 'rgb(255 255 255 / 0.72)' : 'hsl(var(--foreground) / 0.62)';
const edgeStroke = isDarkTheme ? 'rgba(255, 255, 255, 0.82)' : 'rgba(120, 64, 16, 0.72)';
const dotColor = isDarkTheme ? 'rgb(255 255 255 / 0.42)' : 'hsl(var(--foreground) / 0.16)';
const dotAccentColor = isDarkTheme ? 'rgb(255 255 255 / 0.24)' : 'hsl(var(--primary) / 0.28)';
const edgeZIndex = useMemo(() => Math.max(1, ...nodes.map(node => node.zIndex)) + 20, [nodes]);