discourse/app/assets/stylesheets/common/components/load-more.scss
Kelv 70c979be27
FIX: add minimal load-more-sentinel height (#35262)
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.
2025-10-08 17:36:08 +08:00

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;
}