GoogleChrome / chromium-dashboard

Chrome Status Dashboard
https://www.chromestatus.com
Apache License 2.0
641 stars 370 forks source link

Limit pagination length #4328

Closed KyleJu closed 2 months ago

KyleJu commented 2 months ago

Limit the pagination length to avoid overflow.

It shows 4 pages + and - from the current page on the pagination and the first/last page, if exist. For pages not displayed, it shows ... instead. E.g.

Pages at the back missing: Screenshot 2024-09-03 2 49 42 PM

Pages at the front missing: Screenshot 2024-09-03 2 49 53 PM

4 to the right exactly + last page, without ...: Screenshot 2024-09-03 2 50 16 PM

4 to the left exactly + first page without ...: Screenshot 2024-09-03 2 50 26 PM

Missing front and back: Screenshot 2024-09-03 2 50 32 PM

Less than 10 pa Screenshot 2024-09-03 2 00 10 PM ges, and showed fully:

KyleJu commented 2 months ago

The missing front and back case has a bit UI issue. The page size drop-down bar is squeezed

KyleJu commented 2 months ago

The missing front and back case has a bit UI issue. The page size drop-down bar is squeezed

I will reduce it to 4 each size, so it will show 4 *2 (each side) + 1 (current page) + 2 (first/last buttons) = 11 buttons max, instead of 13