Repository navigation
fix(theme): show the whole cover in post lists - #2
Merged
Merged
Conversation
The wabi post card cropped covers to 4:3 on wide screens, cutting off titles on 2:1 and 16:9 covers. The card now uses the 1200x630 share-card ratio and shows the whole cover, with a blurred copy filling any space left by covers of another ratio. citepo check warns when a cover is far from that ratio, and the frontmatter reference recommends 1200x630.
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.
Problem
The wabi post card put covers in a 4:3 box on wide screens and cropped them from the center. Most covers are made as share images (2:1, 16:9 or 1200x630), so the left and right of the cover were cut off, often including the first letters of the title.
Changes
object-contain); a blurred copy behind it fills any space left by covers of another ratio, so square or tall covers no longer get cropped either.citepo check: newcover_aspectwarning when a cover is outside 1.6:1 to 2.2:1, with a hint to use 1200x630 or setogImageseparately.frontmatter.mdrecommends 1200x630 covers.Verification
pnpm typecheckandpnpm testpass (189 tests, one new).aspect-[1200/630]class is in the CSS, andcitepo checkreports no cover warnings for those covers.🤖 Generated with Claude Code