ENG-3235: Fix pagination ellipsis wrapping#7803
Conversation
Override letter-spacing and white-space on .ant-pagination-item-ellipsis to prevent the ellipsis from being too wide and wrapping. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
There was a problem hiding this comment.
Code Review
This is a small, targeted CSS fix with a matching changelog entry. The change is correct and minimal.
What the fix does
letter-spacing: 0 collapses the extra horizontal space that the Ant Design ellipsis element introduces, and white-space: nowrap prevents it from wrapping to the next line. Both properties are scoped tightly to .ant-pagination-item-ellipsis, so the blast radius is as small as possible.
Observations
- Correctness: The two properties together address the root symptom (ellipsis too wide → wraps). This is the right approach for a global override in a SCSS theme file.
- Scoping: The BEM-style nesting (
&-item-ellipsisinside.ant-pagination) is consistent with the surrounding file and limits the override to exactly the affected element. - Changelog: Entry is correctly typed as
Fixed, matches the PR number, and has a clear description.
One nit (inline)
See the inline comment on the // fixes a bug... comment — linking to an upstream issue would make it easier to revisit this workaround when upgrading Ant Design.
Overall this is clean and ready to merge.
| } | ||
|
|
||
| .ant-pagination { | ||
| // fixes a bug where the ellipsis is too wide and wraps to the next line. Maybe they'll fix this. |
There was a problem hiding this comment.
Nit: the comment is clear enough, but it'd be helpful to link to the upstream Ant Design issue/PR here (if one exists) so future readers can easily check whether the fix has landed and this workaround can be removed.

Ticket ENG-3235
Description Of Changes
Fixes the Ant Design pagination ellipsis ("...") being too wide and wrapping to the next line. This is caused by default
letter-spacingon the ellipsis element making it exceed its container width.Code Changes
letter-spacing: 0andwhite-space: nowrapon.ant-pagination-item-ellipsisin the global SCSS theme to prevent wrappingSteps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works