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

3185 / Fix NavigationDrawer Overflow #3187

Merged
merged 7 commits into from
Jan 5, 2024

Conversation

jordan-sussman
Copy link
Contributor

@jordan-sussman jordan-sussman commented Dec 31, 2023

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.

Copy link

github-actions bot commented Dec 31, 2023

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 🚫 dangerJS against e04a7e7

@jordan-sussman jordan-sussman changed the title 3185 / Fix NavigationDrawer Overflow for Short Viewports 3185 / Fix NavigationDrawer Overflow Dec 31, 2023
@charlesBochet
Copy link
Member

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?

@jordan-sussman
Copy link
Contributor Author

jordan-sussman commented Jan 3, 2024

@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?

@charlesBochet
Copy link
Member

@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!

@jordan-sussman
Copy link
Contributor Author

@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.

@charlesBochet
Copy link
Member

Ok! This looks acceptable, I'll merge it as it is, thank you!

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@charlesBochet charlesBochet merged commit f3cbed8 into twentyhq:main Jan 5, 2024
10 checks passed
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.

Add scroll to left-side menu
2 participants