aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 08:50:36 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 08:50:36 -0800
commit52b5885c87ae4f97c1208fefd98f94e6b5af0076 (patch)
treead95b87db84228564e24282af805474fddaa30f1 /frontend/src/components
parent038cdd6ae395eb4249ab1758d319f847beeb4549 (diff)
downloadneko-52b5885c87ae4f97c1208fefd98f94e6b5af0076.tar.gz
neko-52b5885c87ae4f97c1208fefd98f94e6b5af0076.tar.bz2
neko-52b5885c87ae4f97c1208fefd98f94e6b5af0076.zip
Fix mobile infinite scroll by using <li> and threshold 0 for sentinel
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/FeedItems.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/components/FeedItems.tsx b/frontend/src/components/FeedItems.tsx
index 0f302d3..5220c77 100644
--- a/frontend/src/components/FeedItems.tsx
+++ b/frontend/src/components/FeedItems.tsx
@@ -201,7 +201,7 @@ export default function FeedItems() {
}
});
},
- { root: null, threshold: 0.1, rootMargin: '100px' }
+ { root: null, threshold: 0, rootMargin: '100px' }
);
items.forEach((_, index) => {
@@ -240,9 +240,9 @@ export default function FeedItems() {
</div>
))}
{hasMore && (
- <div id="load-more-sentinel" className="loading-more">
+ <li id="load-more-sentinel" className="loading-more">
{loadingMore ? 'Loading more...' : ''}
- </div>
+ </li>
)}
</ul>
)}