Skip to content

only display "Jump to page" when >100 pages#8563

Merged
mscolnick merged 3 commits intomainfrom
sham/only-display-jump-page-ellipsis
Mar 4, 2026
Merged

only display "Jump to page" when >100 pages#8563
mscolnick merged 3 commits intomainfrom
sham/only-display-jump-page-ellipsis

Conversation

@Light2Dark
Copy link
Collaborator

@Light2Dark Light2Dark commented Mar 4, 2026

📝 Summary

100 is chosen because that's the clamping point where we introduce ellipsis.

image

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • Tests have been added for the changes made.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • Pull request title is a good summary of the changes - it will be used in the release notes.

@Light2Dark Light2Dark requested a review from manzt as a code owner March 4, 2026 07:26
@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Mar 4, 2026 4:33pm

Request Review

@Light2Dark Light2Dark added the bug Something isn't working label Mar 4, 2026
data-testid="page-jump-input"
/>
</div>
{totalPages > 50 && (
Copy link
Contributor

Choose a reason for hiding this comment

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

why 50? should it be based on when we do the clamping (which might be 50?)

Copy link
Collaborator Author

@Light2Dark Light2Dark Mar 4, 2026

Choose a reason for hiding this comment

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

We clamp at 100, but I felt 50 was a good number so you don't have to scroll too much. We could change later I think

I've updated to 100

@Light2Dark Light2Dark changed the title only display "Jump to page" when >50 pages only display "Jump to page" when >100 pages Mar 4, 2026
@mscolnick mscolnick merged commit e37b0ab into main Mar 4, 2026
32 checks passed
@mscolnick mscolnick deleted the sham/only-display-jump-page-ellipsis branch March 4, 2026 18:56
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.20.5-dev5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants