add infinite scroll

This commit is contained in:
Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent d3cc2e1ca8
commit 8cb0a7a020
21 files changed
+179 -10

No files matched your search

@@ -0,0 +1,5 @@
<% if pagy.next || pagy.page > 1 %>
<infinite-scroll id="infinite_scroll" class="col-span-full flex justify-center py-2" data-src="<%= url_for(params: request.query_parameters.merge('page' => pagy.next)) if pagy.next %>">
<%= svg_icon('loader', class: 'w-6 h-6 animate-spin') %>
</infinite-scroll>
<% end %>