-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix(listview): add nowrap to view mode container #18246
Conversation
@villebro In this case I am not sure if we should do a no-wrap. Those view buttons side by side take up a lot of space and it's even more obvious when you have a few rows of filters. We could actually keep this logic that if there is more than one row the icons are stacked on the top of each other or improve the margins/spacings of the whole component + icons. Wdyt? The view icon could also be a drop down radio button to save the space. |
Thanks @kasiazjc for the review! In the current design, keeping the no-wrap kinda feels ok as the dropdowns usually aren't able to gobble up the whole available space on the right (=the no-wrapped buttons don't eat up valuable horizontal space). However, having said that, I think an alternative layout in the whole component that adjusts to different sizes better would probably be optimal. Did you have a particular layout in mind? |
Codecov Report
@@ Coverage Diff @@
## master #18246 +/- ##
=======================================
Coverage 66.30% 66.30%
=======================================
Files 1592 1592
Lines 62437 62439 +2
Branches 6292 6295 +3
=======================================
+ Hits 41401 41403 +2
Misses 19383 19383
Partials 1653 1653
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@villebro Makes sense! So I thought about something like this. The popover logic is something that we are implementing now for time columns in explore with @kgabryje. This way we would be able to save a little bit of precious space, let me know what you think (and do not mind the mocks, i found random ones in figma). |
I like this @kasiazjc 👍 @rusackas @mistercrunch thoughts on rolling out this new design here? |
@villebro / @kasiazjc I'm OK with it... I can't say it's love though. I appreciate the saved real estate, but it doesn't seem like the biggest real estate hog in its vicinity. As far as the interaction itself, If the menu/dropdown opens on hover, it's not so bad. But otherwise, we're asking for two clicks for a toggle, which seems cumbersome. We could make the toggler smaller, and even use some AntD components, similar to this I think this PR solves the acute issue, so I'm approving... we can certainly continue to optimize if we feel like it, in this PR or another. |
Merging this for now, going to follow up later when we've had more time to iterate on the designs |
SUMMARY
Add
white-space: nowrap;
to the listview view mode container to prevent the buttons from line wrapping.AFTER
BEFORE
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION