Commit 496f10a
committed
Keep custom emojis inline next to display names
The new design system applies "img { display: block }" as part
of the UnoCSS Wind4 reset to avoid baseline gaps under stand-
alone images, so the inline <img> emitted by renderCustomEmojis
broke onto its own line whenever a display name carried a
custom emoji like ":nonbinary:". This was visible on the
profile header, the public home page, the account list, and on
every post in the timeline.
Render the emoji image with an inline style of
"display: inline-block; height: 1em; vertical-align: -0.125em"
so it sits beside the surrounding text and rests on the
baseline of the run.
Assisted-by: Claude Code:claude-opus-4-71 parent 71dd980 commit 496f10a
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