Skip to content

Use max-width instead of width for prose images#368

Merged
simonhamp merged 1 commit intomainfrom
fix-prose-img-width
Apr 20, 2026
Merged

Use max-width instead of width for prose images#368
simonhamp merged 1 commit intomainfrom
fix-prose-img-width

Conversation

@simonhamp
Copy link
Copy Markdown
Member

Summary

  • Changes .prose p:has(img) img from w-full (width: 100%) to max-w-full (max-width: 100%)
  • Images inside prose paragraphs now retain their intrinsic size when smaller than the container, instead of always stretching to fill the full width

🤖 Generated with Claude Code

Replace w-full (width: 100%) with max-w-full (max-width: 100%) on
images inside .prose paragraphs so images retain their intrinsic
size when smaller than the container.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review April 20, 2026 10:51
@simonhamp simonhamp merged commit 393dffc into main Apr 20, 2026
2 checks passed
@simonhamp simonhamp deleted the fix-prose-img-width branch April 20, 2026 11:03
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.

1 participant