Add horizontal padding to the Pagination container#490
Conversation
The shared .pagination-container had `padding: 1rem 0` (vertical only), so when a pager is dropped directly into a bordered container — e.g. the monitor Subnets panel — the "Showing X of Y" text and the nav hugged the left/right edges with no gap. Add 1rem horizontal padding so every pager has breathing room regardless of where it's placed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 18 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the padding of the Pagination component in Pagination.css from 1rem 0 to 0.75rem 1rem to prevent elements from hugging the edges when placed inside bordered containers. A comment explaining this layout adjustment has also been added. There are no review comments, and I have no additional feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Bug (user-reported)
On the monitor Subnets panel, the pager's "Showing X of Y" text and the nav controls were flush against the left/right edges of the component with no gap.
Cause
The shared
.pagination-containerhadpadding: 1rem 0— vertical padding only. Pagers that are dropped directly into a bordered container (the #477 batch: SubnetsPanel, ExternalEventsPanel, BaselineDefinitionPanel, etc.) had no horizontal breathing room. It only looked fine on ExtractedFiles/FileList because those were wrapped in a padded<div>.Fix
padding: 1rem 0→padding: 0.75rem 1remon.pagination-container, so every pager gets horizontal padding regardless of placement. One-line CSS change; affects all pagers uniformly.Verification
Playwright: the extracted-files pager now reports
padding-left/right: 16px(was0); screenshot confirms the info + nav sit with even gaps from the edges. Same component backs the Subnets pager, so it's fixed by the same change.🤖 Generated with Claude Code