You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(library): keep corner resize handles on content-sized nodes
Follow-up on the resize-cursor fix: keep the four corner handles on a
node with a pinned axis instead of dropping them. React Flow's corners
resize both axes, so on a content-sized node they showed a diagonal
cursor for a resize that can only go one way. Constrain each corner to
the free axis with React Flow's `resizeDirection` and relabel its cursor
to that axis, so the familiar corner handles stay, still resize the axis
that can change, and never point a direction the drag won't go.
Removes the widened line hit-area (the corners are the grab target
again) and restores the class-based fixture in the affordance e2e.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/fix-resize-cursor-locked-axis.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"@tumaet/apollon": patch
3
3
---
4
4
5
-
Nodes no longer offer a resize cursor on borders that can't resize. A class's height is driven by its attributes and methods, so its top and bottom borders showed a resize cursor and accepted a drag that did nothing. Content-sized nodes — classes, object and communication-object nodes, SFC action tables and the activity fork bars — now show resize controls only on the borders that can move: drag those side borders, which are easier to grab than before, rather than a corner.
5
+
Nodes no longer show a resize cursor on borders that can't resize. A class's height is driven by its attributes and methods, so its top and bottom borders showed a vertical-resize cursor and accepted a drag that did nothing. Content-sized nodes — classes, object and communication-object nodes, SFC action tables and the activity fork bars — now resize only along the axis that can change: the corner handles stay, but they and the cursor only ever point that way.
0 commit comments