openstreetmap / openstreetmap-website

The Rails application that powers OpenStreetMap
https://www.openstreetmap.org/
GNU General Public License v2.0
2.22k stars 918 forks source link

Don't show older/newer buttons if all items fit on one page #5276

Closed AntonKhorev closed 1 month ago

AntonKhorev commented 1 month ago

Do the suggestion https://github.com/openstreetmap/openstreetmap-website/pull/5262#pullrequestreview-2369829924. It's somewhat related to that pull request because pagination buttons will take more space. Maybe we don't want that if the page contents is small.

With this PR pagination buttons are shown as usual if there's more than one page: image

But if there's only one page, they are removed: image

tomhughes commented 1 month ago

Looks good to me, thanks.