Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

AntonKhorev
Copy link
Collaborator

@AntonKhorev AntonKhorev commented Oct 21, 2024

Do the suggestion #5262 (review). 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

Copy link
Contributor

@nenad-vujicic nenad-vujicic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Thank you very much!!!

@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit 8cb270f into openstreetmap:master Oct 21, 2024
20 of 21 checks passed
@AntonKhorev AntonKhorev deleted the no-older-newer-buttons branch October 21, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants