Repository navigation
fix(site): prevent 16:9 rect cropping on inline Portable Text images and constrain prose width - #781
Merged
codercatdev merged 1 commit intoOct 23, 2026
Conversation
…and constrain prose width
⚡ Cloudflare Worker Preview Ready!
|
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.
Fixes two issues affecting blog and podcast content layout and inline images:
PtImage.astro): Previously chained.width(1920).height(1080)onurlForImage(node), which caused@sanity/image-urlto compute and inject a forced16:9?rect=...crop on any non-16:9 image (slicing the top and bottom off tall memes, screenshots, and vertical diagrams). Now parses native dimensions from the Sanity asset_ref, builds responsivesrc/srcsetusing.width(w)only (preserving natural aspect ratio), and caps height atmax-h-[80dvh].PortableTextContent.astro): Replacesmax-w-nonewithmax-w-4xlsomx-auto prose-violet lg:prose-xlcenters a readable article column instead of stretching across the entire 1536px container.CoverMedia.astro,guest/[slug].astro,author/[slug].astro,sponsor/[slug].astro): Passeswidth={256} height={256}for square profile avatars so they are not pre-cropped to16:9.