mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 11:13:22 +03:00
Some improvements to pagination in dark mode
This commit is contained in:
parent
2cf0c1a456
commit
edc77236c7
@ -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;
|
||||
}
|
||||
|
@ -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 %>
|
||||
|
Loading…
Reference in New Issue
Block a user