Skip to content

Use built-in badge for homepage release badge - #278

Merged
waruqi merged 1 commit into
xmake-io:masterfrom
Arteiimis:feat/homepage-release-badge-built-in
Apr 11, 2026
Merged

Use built-in badge for homepage release badge#278
waruqi merged 1 commit into
xmake-io:masterfrom
Arteiimis:feat/homepage-release-badge-built-in

Conversation

@Arteiimis

Copy link
Copy Markdown
Contributor

Follow-up to #277.

The previous PR was merged before the final built-in Badge update was pushed. This PR rebases that last change onto current master.

@vercel

vercel Bot commented Apr 11, 2026

Copy link
Copy Markdown

@Arteiimis is attempting to deploy a commit to the waruqi's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify

netlify Bot commented Apr 11, 2026

Copy link
Copy Markdown

Deploy Preview for mellow-creponne-9cce3d ready!

Name Link
🔨 Latest commit 25784c7
🔍 Latest deploy log https://app.netlify.com/projects/mellow-creponne-9cce3d/deploys/69da5a25feed7c00087cff82
😎 Deploy Preview https://deploy-preview-278--mellow-creponne-9cce3d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request replaces the raw release tag text in the HomeHeroInfo component with a VPBadge component and refactors the associated CSS to use flexbox and a brightness filter on hover. The review feedback highlights a potential layout issue where relative positioning units may cause inconsistent vertical alignment across different screen sizes and identifies an unused box-shadow transition property that should be removed for cleanliness.

text-decoration: underline;
text-decoration-color: transparent;
text-underline-offset: 0.16em;
top: -0.6em;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The top offset is defined in em units relative to the inherited font size (which scales from 32px to 56px across breakpoints), but the VPBadge now has a fixed size (via the small class). This causes the badge's vertical position to shift inconsistently relative to its own height as the screen size changes. Consider using a fixed offset (e.g., in px) or setting a fixed font-size on this wrapper so the em offset remains proportional to the badge itself.

.xmake-release-badge-chip {
margin-left: 0;
transform: none;
transition: filter 0.2s ease, box-shadow 0.2s ease;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The transition property includes box-shadow, but no box-shadow is defined or modified on hover for the .xmake-release-badge-chip. This is unnecessary code and should be cleaned up.

  transition: filter 0.2s ease;

@waruqi
waruqi merged commit f23fa13 into xmake-io:master Apr 11, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants