From 1c4c2c0040fd9c468413d725459f3dbb03996e63 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 16 Oct 2024 17:07:07 +0100 Subject: [PATCH] Don't display pagination links when there's only 1 page --- lib/music_library_web/components/pagination.ex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/music_library_web/components/pagination.ex b/lib/music_library_web/components/pagination.ex index 6c446678..75a63898 100644 --- a/lib/music_library_web/components/pagination.ex +++ b/lib/music_library_web/components/pagination.ex @@ -11,7 +11,11 @@ defmodule MusicLibraryWeb.Pagination do assigns = assign(assigns, :page_links, page_links) ~H""" -
+
1} + id={@id} + class="flex items-center justify-between bg-white px-4 py-6 mb-4" + > <%!-- Only on smallest viewport --%>