Skip to content
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

Add UI for anchor/position dropdowns #2940

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

RunDevelopment
Copy link
Member

@RunDevelopment RunDevelopment commented Jun 4, 2024

This PR adds a new preferred style for dropdowns that describe anchors or positions. The Text as Image node is that only node using this new style right now, but I plan to use it for #2933/#777 as well. We might even use it for Blend Images, but that needs some more work.

image image

Other changes:

  • Rename position options in Text As Image and Blend Images. The labels are now shorter.
  • Add useValidDropDownValue hook to ensure valid dropdown values. This removes some code duplication.

Copy link
Member

@joeyballentine joeyballentine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really cool, good job

@joeyballentine joeyballentine merged commit ee0b03f into chaiNNer-org:main Jun 4, 2024
17 checks passed
@RunDevelopment RunDevelopment deleted the anchor-input branch June 4, 2024 20:31
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.

2 participants