Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/components/SearchPagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{#if totalPages > 1}
<div class="flex justify-center items-center space-x-2">
<button
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white cursor-pointer hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
disabled={!hasPrevious}
onclick={() => handlePageChange(currentPage - 1)}
>
Expand All @@ -43,7 +43,7 @@
class="px-4 py-2 border rounded-md shadow-sm text-sm font-medium {pageNum ===
currentPage
? 'bg-amber-600 text-white border-amber-600'
: 'border-gray-300 text-gray-700 bg-white hover:bg-gray-50'}"
: 'border-gray-300 text-gray-700 bg-white hover:bg-gray-50 cursor-pointer'}"
onclick={() => handlePageChange(pageNum)}
>
{pageNum}
Expand All @@ -52,7 +52,7 @@
</div>

<button
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
class="px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white cursor-pointer hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
disabled={!hasNext}
onclick={() => handlePageChange(currentPage + 1)}
>
Expand Down