Skip to content

Commit

Permalink
Make clicking fence nubs more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanBWWright committed Jan 13, 2025
1 parent e8105fa commit e16ac9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/editor/subviews/fences/Fence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export function Fence({

return (
<>
<Line
points={lines}
stroke={fenceIdx === selectedFence ? "red" : getColour(fenceIdx)}
strokeWidth={fenceIdx === selectedFence ? 5 : 2}
onClick={() => setSelectedFence(fenceIdx)}
/>
{data.FnNb[1000 + fenceIdx].obj.map((nub, nubIdx) => (
<FenceNub
key={nubIdx}
Expand All @@ -34,12 +40,6 @@ export function Fence({
}}
/>
))}
<Line
points={lines}
stroke={fenceIdx === selectedFence ? "red" : getColour(fenceIdx)}
strokeWidth={fenceIdx === selectedFence ? 5 : 2}
onClick={() => setSelectedFence(fenceIdx)}
/>
</>
);
}
Expand Down

0 comments on commit e16ac9d

Please sign in to comment.