Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/components/PaginationControls.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<nav v-if="totalPages > 1" class="flex flex-wrap items-center justify-start gap-3 text-sm text-slate-500 dark:text-slate-400" :aria-label="ariaLabel">
<nav v-if="totalPages > 1" class="flex flex-wrap items-center justify-end gap-3 text-sm text-slate-500 dark:text-slate-400" :aria-label="ariaLabel">
<p class="font-medium">Page {{ currentPage }} of {{ totalPages }}</p>
<div class="flex items-center gap-2">
<button type="button" class="pill-button" :disabled="isFirstPage" @click="$emit('previous')">
Expand Down
20 changes: 11 additions & 9 deletions src/partials/RecommendationPartial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@
</div>
</li>
</ul>
<PaginationControls
:current-page="currentPage"
:total-pages="totalPages"
aria-label="Recommendations pagination"
previous-label="Previous"
next-label="Next"
@previous="goToPreviousPage"
@next="goToNextPage"
/>
<div class="flex justify-end pt-4 md:pt-6">
<PaginationControls
:current-page="currentPage"
:total-pages="totalPages"
aria-label="Recommendations pagination"
previous-label="Previous"
next-label="Next"
@previous="goToPreviousPage"
@next="goToNextPage"
/>
</div>
</section>
</template>

Expand Down
Loading