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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 = [];