Skip to content

Commit d1ad495

Browse files
committed
Revert "css: size the agent picker's tab marks inside prose"
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.
1 parent e942bd7 commit d1ad495

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/css/style.css

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3899,20 +3899,3 @@ lite-youtube::before {
38993899
transform: none;
39003900
}
39013901
}
3902-
3903-
/* The agent picker's tab marks, inside prose.
3904-
3905-
The .ff-agent-tab img rule further up moved the sizing out of utility classes
3906-
precisely so .prose could not beat it, but it is not specific enough to finish the
3907-
job: the site's own `.prose:not(.prose-natural-size-images) img` is 0-2-1 against
3908-
that rule's 0-1-1, so in a blog post, changelog entry or docs page the marks get
3909-
width:100% and height:auto back. Being flex items in an auto-width button, the
3910-
100% cannot resolve against anything, so each mark falls back to its intrinsic
3911-
size: the ChatGPT glyph is 780px square in its own file and renders at that.
3912-
/ai has no .prose wrapper, which is why the picker looks right there and only
3913-
there. Matching .prose's own specificity and sitting later in the file takes it
3914-
back. */
3915-
.prose .ff-agent-tab img {
3916-
height: 1rem;
3917-
width: auto;
3918-
}

0 commit comments

Comments
 (0)