docs(home): center version and GitHub buttons on homepage - #16327
Merged
Conversation
AbdelrahmanHafez
marked this pull request as ready for review
June 10, 2026 13:11
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the homepage “follow” row (GitHub Star/ Fork buttons + version text) to be properly centered and to prevent the GitHub button count UI from being clipped. It does so by switching the layout from offset-based positioning to flexbox centering, and by increasing the embedded GitHub button iframe widths.
Changes:
- Increase GitHub button iframe widths to fit rendered count content.
- Replace magic-offset positioning with a flexbox-centered
#follow ullayout. - Simplify/remove bespoke version-span alignment hacks and rely on flex alignment +
gap.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| index.pug | Widens the GitHub button iframes (Star/ Fork) to avoid clipping. |
| docs/css/style.css | Centers the follow row using flexbox and removes the prior offset-based alignment rules. |
vkarpov15
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The "Version X" text on the home page wasn't actually centered between the Star and Fork buttons, the row was positioned with magic offsets (
margin-left: 109px, asymmetric margins, atop: -4pxhack). The ghbtns iframes were also 100px wide while the Star button with the current star count needs 107px, so the count box was getting clipped.This PR centers the row with flexbox instead, and widens the iframes to fit their rendered content (109px Star, 103px Fork) so the counts aren't clipped. Visual-only change.
Before
After