Fix display of button in varying conditions

This commit is contained in:
Jason Zimdars
2025-10-06 13:34:18 -05:00
parent 0ff0ed796f
commit bfb60deb80
+1 -1
View File
@@ -5,7 +5,7 @@ module PaginationHelper
def link_to_next_page(namespace, page, activate_when_observed: false, label: "Load more...", data: {}, **attributes)
if page.before_last? && !params[:previous]
pagination_link(namespace, page.number + 1, label: label, activate_when_observed: activate_when_observed, data: data, class: "margin-block btn txt-small center", **attributes)
pagination_link(namespace, page.number + 1, label: label, activate_when_observed: activate_when_observed, data: data, class: "btn txt-small center-block center", **attributes)
end
end