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

More compact collapsed node design #2551

Conversation

RunDevelopment
Copy link
Member

This implements the design for collapsed nodes that I mentioned.

image
image
image

@joeyballentine
Copy link
Member

I like this a lot. The only thing I'm not a fan of is when it overflows (like what you sent in the other PR). I'm wondering if we can come up with a good solution for that

@RunDevelopment
Copy link
Member Author

Ugly tall nodes:

image

Not a nice design, but it works.

@mrjschulte
Copy link
Contributor

I'd be interested in seeing something proposed with the connection density on the side of the nodes compressing as shown but with the height of the collapsed node limited something to something that is a max 1.5x factor of a "plain" collapsed node such as the TEXT node on the left of the above image.

@joeyballentine
Copy link
Member

@mrjschulte So you're suggesting changing the size of the handles instead? I could try that out, but first I'm gonna merge this

@joeyballentine joeyballentine merged commit aecfae5 into chaiNNer-org:expand-collapse Feb 7, 2024
4 checks passed
@RunDevelopment RunDevelopment deleted the compact-collapsed-nodes branch February 7, 2024 12:11
joeyballentine added a commit that referenced this pull request Feb 8, 2024
* Collapse nodes implementation

* styling tweak

* Save data properly

* nodrag on button

* each item in list must have unique key prop

* change collapse button bg to transparent

* Fix documentation node example

* double click to collapse

* More compact collapsed node design (#2551)

* More compact collapsed node design

* Fixed type error

* Remove placeholder icon

* Ugly tall nodes

* change caret directions

* Support collapsing in node docs

* Fix input type colors in collapsed node

* "each item in list must have unique key prop"

* Update src/renderer/components/node/Node.tsx

Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>

* dont show collapse button if useCollapse not passed in (for docs)

* Update src/renderer/components/Handle.tsx

Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>

* dont do the dumb thing

* Extract into hook

---------

Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
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.

3 participants