Enhance Visual Differentiation for Similar Regex Components (#153)

This commit is contained in:
Keigo YAMAZAKI
2025-04-11 21:33:18 +09:00
committed by GitHub
parent 7f9e4f3010
commit 296c0c7266
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ function GroupLikeNode({ x, y, node, selected }: Props) {
height={contentSize[1]}
rx={GRAPH_NODE_BORDER_RADIUS}
ry={GRAPH_NODE_BORDER_RADIUS}
className="stroke-[1.5] stroke-graph-group fill-transparent "
className={`stroke-[1.5] fill-transparent ${('negate' in node && node.negate ? 'stroke-red-500 [stroke-dasharray:4_2]' : 'stroke-graph-group')}`}
>
{nodeChildren.length > 0 && (
<>

View File

@@ -43,7 +43,7 @@ function SimpleNode({ x, y, node, selected }: Props) {
rx={GRAPH_NODE_BORDER_RADIUS}
ry={GRAPH_NODE_BORDER_RADIUS}
fill="transparent"
className="stroke-[1.5] stroke-graph"
className={`stroke-[1.5] ${('negate' in node && node.negate ? 'stroke-red-500 [stroke-dasharray:4_2]' : 'stroke-graph')}`}
>
<foreignObject
x={contentX + GRAPH_NODE_PADDING_HORIZONTAL}