Fix: let utility classes override .prose image sizing - #5719
Merged
Conversation
✅ Deploy Preview for flowforge-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Yndira-E
force-pushed
the
fix/changelog-imgs
branch
from
August 31, 2026 18:02
4d0181f to
f3b0925
Compare
Yndira-E
enabled auto-merge
August 31, 2026 18:05
5 tasks
dimitrieh
added a commit
that referenced
this pull request
Sep 2, 2026
This reverts commit 942f543. Superseded on main by #5719, which fixed the same thing more generally: the offending .prose:not(.prose-natural-size-images) img rule now sits inside @layer components, and an unlayered rule beats any layered one whatever its specificity, so .ff-agent-tab img wins on its own and every other component whose unlayered styles that rule was outranking is fixed too, not just this one. The picker only looked broken here because this branch predates that change.
dimitrieh
added a commit
that referenced
this pull request
Sep 2, 2026
This reverts commit 942f543. Superseded on main by #5719, which fixed the same thing more generally: the offending .prose:not(.prose-natural-size-images) img rule now sits inside @layer components, and an unlayered rule beats any layered one whatever its specificity, so .ff-agent-tab img wins on its own and every other component whose unlayered styles that rule was outranking is fixed too, not just this one. The picker only looked broken here because this branch predates that change.
5 tasks
dimitrieh
added a commit
that referenced
this pull request
Sep 2, 2026
This reverts commit 942f543. Superseded on main by #5719, which fixed the same thing more generally: the offending .prose:not(.prose-natural-size-images) img rule now sits inside @layer components, and an unlayered rule beats any layered one whatever its specificity, so .ff-agent-tab img wins on its own and every other component whose unlayered styles that rule was outranking is fixed too, not just this one. The picker only looked broken here because this branch predates that change.
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.

Description
.prose img { width: 100%; height: auto; }was unlayered CSS, so it always beat Tailwind utility classes (e.g.w-24) on images inside.prose— this is why AI agent logos in/changelog/2026/08/connect-your-own-ai-agentcouldn't be sized down.Moves the rule into
@layer componentsso utility classes can override it, while it stays the default everywhere else. This affects.prosesitewide (blog, changelog, customer stories, etc.), not just that one page — checked existing content and found nothing relying on the old behavior.handbook/anddocs/are unaffected (already opt out viaprose-natural-size-images).Also fixed a comment on
AgentSetupTabsthat was now inaccurate about.prose imgbeing unlayered.Related Issue(s)
Checklist