Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Some improvements to pagination in dark mode
Uku Tahtedc77236c708
diff --git a/assets/css/app.css b/assets/css/app.cssindex b680036786..58376b8b23 100644--- a/assets/css/app.css+++ b/assets/css/app.css@@ -308,5 +308,5 @@ iframe[hidden] {}.pagination-link[disabled] {- @apply cursor-default bg-gray-100 pointer-events-none;+ @apply cursor-default bg-gray-100 dark:bg-gray-300 pointer-events-none;}diff --git a/lib/plausible_web/templates/site/index.html.eex b/lib/plausible_web/templates/site/index.html.eexindex 192ed45880..dc5e9367cd 100644--- a/lib/plausible_web/templates/site/index.html.eex+++ b/lib/plausible_web/templates/site/index.html.eex@@ -40,9 +40,9 @@<%= if @pagination.total_pages > 1 do %><%= pagination @conn, @pagination, [current_class: "is-current"], fn p -> %>- <nav class="px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6" aria-label="Pagination">+ <nav class="px-4 py-3 flex items-center justify-between border-t border-gray-200 dark:border-gray-500 sm:px-6" aria-label="Pagination"><div class="hidden sm:block">- <p class="text-sm text-gray-700">+ <p class="text-sm text-gray-700 dark:text-gray-300">Showing page<span class="font-medium"><%= @pagination.page %></span>of@@ -51,8 +51,8 @@</p></div><div class="flex-1 flex justify-between sm:justify-end">- <%= pagination_link(p, :previous, label: "← Previous", class: "pagination-link relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50", force_show: true) %>- <%= pagination_link(p, :next, label: "Next →", class: "pagination-link ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50", force_show: true) %>+ <%= pagination_link(p, :previous, label: "← Previous", class: "pagination-link relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white dark:bg-gray-100 hover:bg-gray-50", force_show: true) %>+ <%= pagination_link(p, :next, label: "Next →", class: "pagination-link ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white dark:bg-gray-100 hover:bg-gray-50", force_show: true) %></div></nav><% end %>