fix(docs): enlarge the hero logo on tablet/mobile#287
Merged
Conversation
The shared theme only enlarges the hero mark at >=960px, so below that it rendered at its small intrinsic size (~64px). Size it to ~208px for tablet/mobile too. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the VitePress docs home hero logo sizing so it renders larger on tablet/mobile, aligning the <960px experience with the shared theme’s >=960px hero mark sizing.
Changes:
- Adds a
<960pxmedia query to explicitly size the hero image to ~208px. - Caps the hero image width to
62vwon very small viewports to avoid overflow.
Use min(208px, 62vw) for both width and height so the mark shrinks proportionally on very narrow screens instead of going non-square. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Good catch — fixed. Replaced |
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 shared theme only enlarges the hero mark at >=960px, so on tablet and mobile it rendered at its small intrinsic size (~64px). This sizes it to ~208px there too. Verified locally at 768 and 390.
🤖 Generated with Claude Code