Skip to content

Fix ScreenshotNumberReference number centering - #3330

Merged
pwizla merged 1 commit into
mainfrom
chore/ScreenshotNumberReference-fix
Jul 15, 2026
Merged

Fix ScreenshotNumberReference number centering#3330
pwizla merged 1 commit into
mainfrom
chore/ScreenshotNumberReference-fix

Conversation

@mariekirsch

@mariekirsch mariekirsch commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The number badge used inline-block with textAlign/padding to fake centering, which left the digit slightly off-center depending on font metrics.

Switched to flexbox (inline-flex + alignItems/justifyContent) for reliable vertical and horizontal centering.

Replace inline-block + padding/text-align hack with flexbox centering so the number renders centered regardless of font metrics.
@mariekirsch
mariekirsch requested a review from pwizla as a code owner July 9, 2026 18:25
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment Jul 9, 2026 6:26pm

Request Review

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

👋 Thank you so much for contributing to the Strapi documentation!

Our team is currently away and won't be able to review your pull request right away. Rest assured we'll get to it as soon as we're back. Thanks a lot for your patience! 🙏

@github-actions github-actions Bot added internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo labels Jul 9, 2026
@mariekirsch mariekirsch self-assigned this Jul 9, 2026
@pwizla pwizla added this to the 7.1.0 milestone Jul 15, 2026

@pwizla pwizla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, Marie

@pwizla
pwizla merged commit 0f5da1a into main Jul 15, 2026
8 checks passed
@pwizla
pwizla deleted the chore/ScreenshotNumberReference-fix branch July 15, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants