Commit 2233dc3
committed
Stop the prose preset from styling inline emoji
The previous fix kept the emoji <img> on the same line as the
surrounding text, but inside a prose container the typography
preset still applied its image rules — most visibly a 2 em
top/bottom margin and an enforced display — which pulled the
emoji above the baseline of the run. Bios on the account list
and profile page, and post bodies that carried an emoji in the
middle of a sentence, all rendered with the emoji floating
above the line.
Tag the emoji <img> with the not-prose class and add an inline
"margin: 0" so the prose preset leaves it alone. In
non-prose contexts (display names in headings) the extra class
has no effect, so the inline-block + vertical-align tuning from
the previous commit still works there.
Assisted-by: Claude Code:claude-opus-4-71 parent d59e725 commit 2233dc3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
0 commit comments