twenty
twenty copied to clipboard
3185 / Fix NavigationDrawer Overflow
Link: closes #3185
Description: Fixes a reported issue where short viewports cause the navigation drawer component to overflow past the main table, causing unexpected whitespace when scrolled to the bottom.
Fix:
Adds overflow-y: auto to StyledContainer allowing users to scroll for overflow items and preventing unexpected whitespace.
CLA
Hello there and welcome to our project! By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement. Although we don't have a dedicated legal counsel, having this kind of agreement can protect us from potential legal issues or patent trolls. Thank you for your understanding.
Generated by :no_entry_sign: dangerJS against e04a7e7f5fb3ef74fc1e6dbde949008830ef0db8
Thanks @jordan-sussman. I have tested the solution and it feels weird that the whole scrollbar is scrolling. Could you actually add a ScrollWrapper on all menuItems but not including the WorkspaceName and Logo on top?
@charlesBochet Hi! That's possible but would prevent users from getting to all sections on shorter viewports. That said, I think this PR is worth fixing the unexpected white space that was initially reported. Separately, it could be worth another ticket to make sections collapsable, but that'd be outside the scope of the initially reported issue. What do you think?
@jordan-sussman I would give it a try with the ScrollWrapper and with the workspaceName not being scrollable. I think that even with a very small viewport, it should be OK!
I've checked many website designs and I don't see any having the whole navbar scrolling!
@charlesBochet I've moved the overflow attribute to the items container, which fixes the initial issue and the preference to scroll all menu items but not the header workspace name/logo.
Ok! This looks acceptable, I'll merge it as it is, thank you!