mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-24 20:50:14 +00:00
Pagination improvements
This commit is contained in:
parent
e5fc4a3282
commit
d948b3e8e7
@ -384,8 +384,13 @@ const Download: NextPage = () => {
|
|||||||
<a key={`${page}`} className="pagination-item" onClick={() => handleSetPageNumber(page)}>{page}</a>
|
<a key={`${page}`} className="pagination-item" onClick={() => handleSetPageNumber(page)}>{page}</a>
|
||||||
)})
|
)})
|
||||||
}
|
}
|
||||||
<span>< Page {pageNumber}</span>
|
{downloads?.paginate?.prev_pages &&
|
||||||
<span> ></span>
|
<span>< </span>
|
||||||
|
}
|
||||||
|
<span> Page {pageNumber}</span>
|
||||||
|
{downloads?.paginate?.next_pages &&
|
||||||
|
<span> > </span>
|
||||||
|
}
|
||||||
{downloads?.paginate?.next_pages &&
|
{downloads?.paginate?.next_pages &&
|
||||||
downloads?.paginate?.next_pages?.map((page) => {
|
downloads?.paginate?.next_pages?.map((page) => {
|
||||||
return (
|
return (
|
||||||
|
@ -527,6 +527,7 @@ button:hover {
|
|||||||
|
|
||||||
.pagination-item {
|
.pagination-item {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
margin-right: 4px;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user