-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Overflowfix #11743
Overflowfix #11743
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was still able to get into a state where the navigation overflow menu did not appear - it seemed to be because while the navLinkTop was higher than the containerBottom, it still did not fit in the container.
I was able to fix it locally by accounting for the height of the nav bar link as well. I updated the filter function body to this:
const navLink = this.$refs.navLinks[index].$el;
const navLinkTop = navLink.offsetTop;
const navLinkHeight = navLink.clientHeight;
const containerTop = this.$refs.navContainer.offsetTop;
const containerBottom = containerTop + this.$refs.navContainer.clientHeight;
return navLinkTop + navLinkHeight >= containerBottom;
And didn't see any more issues.
We chatted about this on slack, but just making a note here, that there appears to be a specific interaction between an 'active' nav link being in the dropdown menu, and the drop down menu not appearing at all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have broken out the remaining issue into a follow up issue: #11776
Docs build is fixed on the release branch. Merging. |
65b5722
into
learningequality:release-v0.16.x
Summary
Fixes the navigation menu to overflow correctly. There was also another unnecessary scrollbar that could hide the BottomAppBar buttons on smaller screens on the facility plugin, it is also fixed by this PR.
Closes #11423
Before
Screen.Recording.2024-01-12.at.22.58.24.mov
Button being hidden
Screen.Recording.2024-01-15.at.17.37.58.mov
After the fix
Screen.Recording.2024-01-18.at.23.41.21.mov
References
#11423
Reviewer guidance
PR process
Reviewer checklist
yarn
andpip
)