Repository navigation
fix(blog): render article body images at full column width - #212
Merged
Merged
Conversation
Body images were capped at 512px (max-w-lg) on desktop and fixed at 256px (max-lg:w-64) below 1024px. Use w-full h-auto so they span the article column and scale proportionally, and drop object-cover (also applied by default in ZoomableImage) so images can't be cropped. The feature image still passes object-cover explicitly.
narcisonunez
approved these changes
Oct 22, 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.
Summary
Fixes article body images on
dokploy.com/blogrendering too small.mx-auto max-w-lg overflow-hidden rounded-lg border border-border object-cover max-lg:w-64→mx-auto h-auto w-full rounded-lg border border-borderZoomableImageno longer addsobject-coverby default. The feature image header still passesobject-coverexplicitly, so it is unchanged.Measured on /blog/devops-containers (2000×925 chart)
"After" values come from applying the new classes to the live page in the browser.
Note: images were not actually being cropped, because height was
auto, soobject-coverhad no visible effect. It's removed so that adding a height constraint later can't crop them.Test plan
biome checkpasses/blog/devops-containersand a couple of other posts on desktop and mobile after deploy