Skip to content

Add UI for anchor/position dropdowns#2940

Merged
joeyballentine merged 2 commits intochaiNNer-org:mainfrom
RunDevelopment:anchor-input
Jun 4, 2024
Merged

Add UI for anchor/position dropdowns#2940
joeyballentine merged 2 commits intochaiNNer-org:mainfrom
RunDevelopment:anchor-input

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
@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