Increase number of pages in pagination dropdown to 1000 (#6207)

This commit is contained in:
WithoutPants
2025-10-29 11:13:29 +11:00
committed by GitHub
parent 90baa31ee3
commit db79cf9bb1

View File

@@ -44,7 +44,7 @@ const PageCount: React.FC<{
useStopWheelScroll(pageInput);
const pageOptions = useMemo(() => {
const maxPagesToShow = 10;
const maxPagesToShow = 1000;
const min = Math.max(1, currentPage - maxPagesToShow / 2);
const max = Math.min(min + maxPagesToShow, totalPages);
const pages = [];