-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Notifications panel scrolling doesn't work on high-resolution displays #120
Comments
I think it'd be a good idea to rewrite the drop-down/page to remove this issue once and for all. My suggestion would be to load an amount of notifications based on the height of the viewport initially, or to limit the dropdown height with CSS. |
This particular issue seems to happen because notification list height is fixed at 70vh. Since the callback for checking whether we're at the bottom of the page and loading more happens on scroll, if the entire first page of content fits in those 70vh, there won't be a scrollbar, so there will never be scrolling, so nothing new will be loaded. |
@askvortsov1 We could force the inner container to be |
But then there'd always be a scrollbar, even when unnecessary. |
@askvortsov1 We could check the This could be used to force the inner container to be |
This can be done once flarum/framework#2781 is merged, as it includes hasNext methods and stuff. |
I have a report that the scrolling of the notifications panel is still broken, and it appears to be related to the fact that the screen has a 4K resolution. The problem appears on multiple browsers. I'm told that resizing the window to make it smaller fixes the issue.
Video follows.
2021-03-22.08-11-58.mp4
The text was updated successfully, but these errors were encountered: