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
12 changes: 10 additions & 2 deletions src/components/changelog/Pagination.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const nextUrl = currentPage < lastPage ? pageUrl(currentPage + 1) : null;

{
lastPage > 1 && (
<nav class="pagination mt-8 flex items-center justify-between" aria-label="Pagination">
<nav class="pagination mt-8 flex flex-wrap items-center justify-between gap-y-2" aria-label="Pagination">
{prevUrl ? (
<a href={prevUrl} class="pagination-btn no-underline">
← Prev
Expand All @@ -61,7 +61,7 @@ const nextUrl = currentPage < lastPage ? pageUrl(currentPage + 1) : null;
<span class="pagination-btn disabled">← Prev</span>
)}

<div class="flex items-center gap-1">
<div class="pagination-pages flex items-center gap-1">
{items.map((item) =>
item === null ? (
<span class="flex h-9 items-center justify-center px-2 text-sm text-sl-color-gray-3">
Expand Down Expand Up @@ -128,4 +128,12 @@ const nextUrl = currentPage < lastPage ? pageUrl(currentPage + 1) : null;
.pagination-btn.disabled {
opacity: 0.35;
}

@media (max-width: 640px) {
.pagination-pages {
order: -1;
width: 100%;
justify-content: center;
}
}
</style>