the panel-body is set to 100% height of the menu-panel
that height includes the 14px of padding (0.5em on top and bottom) that is on the menu-panel
the result is that the bottom 14px of the panel-body is clipped
If you temporarily get rid of the padding from the menu-panel you will see that it gets rid of the clipping.
Doing something like the following basically solves the problem, but there should be a more straightforward way: $panelBody.height('calc(100% - 1em)');
The padding on the menu-panel is still being cut off at the bottom of the screen.
I think a lot of these positioning issues would be easier if Discourse was using the border-box box model.
Iāve submitted a PR that is along these lines, but better.
Integrating notifications into the user menu is a lot cleaner UI-wise; the only complaint Iāve heard from members is that there isnāt a direct link to Messages in either the hamburger menu or the user menu. The only access they have is through their own profiles, which seems like an unnecessary hassle.
Also keep in mind, this would only balance the design for admins, end users would still have a missing row there.
If we are doing a small icon treatment there I think we should pick something that is generally useful, but I am not convinced anything really fits there.
Cool, thanks @simon - hope that fix gets picked up soonā¦
ā¦and hereās another
Currently, if the categories list is sufficiently long, you cannot scroll the dropdown far enough to click on āDesktop viewā - scrolling stops before the text of that link becomes visible, rendering that function useless. .ember-view .menu-panel .slide-in is simply some pixels too high.
Iāve adjusted the logic that estimates how many notifications to show to try and reduce scrollbars from appearing. I also found an issue with the DOM Mutation observer that I fixed. I think youāll be less likely to see scrollbars now.
It does, itās based on the mutation of the elements. Anything in the DOM that changes will cause a recalculation. Does it look like it can fit but canāt? Itās more likely it just canāt fit. I am still working on stuff a bit though.
Thatās a lot of notifications and the only reason for the scrollbar is the Log Out link. Iād rather have one less notification in order to get rid of the scrollbar.