- <.thumbs :for={_thumb <- 1..@item.page_count} :if={@item.page_count} />
+ <.thumbs :for={thumb_num <- 1..@item.page_count} :if={@item.page_count} thumb_num={thumb_num} />
1} class="absolute right-0 top-0 bg-white px-4 py-2">
<%= @item.page_count %> Pages
@@ -152,6 +152,11 @@ defmodule DpulCollectionsWeb.SearchLive do

"""
end
@@ -186,18 +191,18 @@ defmodule DpulCollectionsWeb.SearchLive do
<.link
:for={{page_number, current_page?} <- pages(@page, @per_page, @total_items)}
class={"
- flex
- items-center
- justify-center
- px-3
- h-8
- leading-tight
+ flex
+ items-center
+ justify-center
+ px-3
+ h-8
+ leading-tight
#{if current_page?, do: "active", else: "
- border-gray-300
- text-gray-500
- bg-white border
- hover:bg-gray-100
- hover:text-gray-700
+ border-gray-300
+ text-gray-500
+ bg-white border
+ hover:bg-gray-100
+ hover:text-gray-700
"}
"}
phx-click="paginate"