mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 08:03:41 +08:00
Based on reports in https://meta.discourse.org/t/users-list-only-partial/368793/17, some users may have issues with the LoadMore sentinel not triggering the intersection observer to load more elements due to it's `0px` height. I've not been able to reproduce this consistently myself, but adding the `1px` height appears to resolve the issue. This is an invisible element so it should not cause any inconsistency visually other than possibly causing a marginally earlier load of more elements. Credit to `cathys` on Meta Discourse for the fix.
10 lines
239 B
SCSS
Vendored
10 lines
239 B
SCSS
Vendored
.load-more-sentinel {
|
|
height: 1px; // 0px height causes issues with intersection observer in some cases
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
visibility: hidden;
|
|
position: relative;
|
|
}
|