-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
More compact collapsed node design #2551
Conversation
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 |
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. |
@mrjschulte So you're suggesting changing the size of the handles instead? I could try that out, but first I'm gonna merge this |
* 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>
This implements the design for collapsed nodes that I mentioned.