Skip to content

Fix ScreenshotNumberReference number centering#3330

Open
mariekirsch wants to merge 1 commit into
mainfrom
chore/ScreenshotNumberReference-fix
Open

Fix ScreenshotNumberReference number centering#3330
mariekirsch wants to merge 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
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.

1 participant