-
Notifications
You must be signed in to change notification settings - Fork 9
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 a nested group example, this demos how to handle deeply nested me… #14
Conversation
…nu structure. Also align dropdown's x with menu bar
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #14 +/- ##
==========================================
+ Coverage 0.00% 32.95% +32.95%
==========================================
Files 1 1
Lines 314 446 +132
==========================================
+ Hits 0 147 +147
+ Misses 314 299 -15 ☔ View full report in Codecov by Sentry. |
This kinda works, but it will conflict with my changes. This still crashes when the window menu is too small to render the menu, which I've already fixed (using Rect::clamp) and I will push it when I finish making the menu more responsive. |
Level 4 is covering Level 3, so it appears weird, but the action should works as expected. Maybe add some visual indicator? |
Yes, it is a good idea. I'll do some quick experiments to test whether it feels right in tui |
The tricky part is, if it automatically rendered on left side, then which key is step in, left or right.. Neither feels right.. |
How about stack it up? e.g Nest1 > Nest2 > Nest3 |
.................Nest4|
.................Nest5| |
…ing area is too small
@micielski @joshka take a look? |
I'd say keep it consistent - right key always goes in even when it will render left. |
This is what I've already implemented in my PR
Maybe let's color two most outer drop-downs brighter, and make the rest darker? This way I think it would make it more obvious that the direction of keys changed |
Thanks for the ideas, let me try them out. Will come back later. |
I think I find a more intuitive way. No stack, no left right dance. Instead, let's shift all the menus left, ensure the right most drop down displays. |
@micielski @joshka Take a look? |
Added a new example
|
Looks good to me! Such a simple solution :D |
@joshka yea, I noticed it too, but didn't figure out a good and simple way to solve it.. Maybe just leave the space if any child is a group? |
👍 I think that would be a good approach |
@micielski @joshka updated, take a look? |
LGTM :) |
LGTM too! |
…nu structure.
Also align dropdown's x with menu bar
This should fixed the layout problem, also fixes #4