mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
add infinite scroll
This commit is contained in:
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 %>
|
||||
@@ -1,4 +1,10 @@
|
||||
<% if pagy.pages > 1 %>
|
||||
<% if turbo_native_app? && local_assigns[:next_page_path].blank? %>
|
||||
<% if local_assigns[:left_additional_html].present? %>
|
||||
<div class="mt-2">
|
||||
<%= local_assigns[:left_additional_html] %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% elsif pagy.pages > 1 %>
|
||||
<% left_additional_html = local_assigns[:left_additional_html] %>
|
||||
<div class="flex flex-col md:flex-row md:items-center <%= left_additional_html.present? ? 'mt-3' : 'mt-6' %> mb-6 md:my-6 justify-center md:justify-between">
|
||||
<div class="text-sm <%= 'mb-2 md:mb-0' if left_additional_html.present? %>">
|
||||
|
||||
Reference in new issue
Block a user