Recently, I purchased Moltran, but encountered a major issue: The notification menu disappears on mobile devices, which is not ideal for me. After some research, I discovered that removing the hidden-xs class from the li notification element can solve this problem. By changing
<li class="dropdown hidden-xs open">
to <li class="dropdown open">
, the issue was resolved.
I then proceeded to expand the small menu to full width on smaller devices for better user experience:
@media (max-width: 767px) {
.nav > li.dropdown:not(.hidden-xs).open .dropdown-menu {
width: 100vw;
}
}
Everything seemed perfect until I encountered one obstacle: scrolling within the menu was not possible. On my 5" smartphone, three elements at the end of the menu were hidden and scrolling simply affected the background due to its absolute position.
To illustrate this issue further, I have provided a simple demo on the online demo. In this demonstration, I removed the hidden-xs class to ensure the menu appears on smaller windows as mentioned earlier in the code:
<li class="dropdown hidden-xs open">
.
When the window size is very small, users are unable to see the full notification menu or scroll through it effectively:
https://i.sstatic.net/WChxw.png
As depicted in the image above, even though the scrollbar indicates content below, it does not allow access to view all notifications due to the issue with scrolling. I attempted various solutions, including changing position types, but none proved successful in resolving the problem caused by absolute positioning. I seem to be at an impasse.
Hence, my query is: What modifications should be made to maintain the current functionality while enabling smooth scrolling within notifications on smaller devices?