Skip to content

Refine Arrow connection UI #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2023
Merged

Refine Arrow connection UI #221

merged 2 commits into from
Feb 26, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented Feb 26, 2023

  1. Make the arrow handle stand out. Previously the right and bottom handles were covered by the Monaco editor and were hard to select.
  2. Use undirectional floating edge. Previously the arrows are anchored at the 4 handles, which are not meaningful as we just need to know which nodes are the source/target. That also creates intermingled arrow connections. Now, the anchor of the arrow will move with the pods. Ref: https://reactflow.dev/docs/examples/nodes/easy-connect/
  3. auto-hide the toolbar when the mouse is not over the pods.

Before:

Screenshot 2023-02-26 at 6 50 15 PM

After:

Screenshot 2023-02-26 at 6 49 24 PM

@lihebi lihebi merged commit b656a69 into codepod-io:main Feb 26, 2023
@lihebi lihebi mentioned this pull request May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant