Skip to content

Commit 410b9bb

Browse files
fix: use CSS style for img sizing in docs example
Amp-Thread-ID: https://ampcode.com/threads/T-019cf809-1bbe-7158-a32f-d7f240e4c1ce Co-authored-by: Amp <amp@ampcode.com>
1 parent 69e817f commit 410b9bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CUSTOM-EMOJIS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function MyEmojiPicker() {
4141
Emoji: ({ emoji, ...props }) => (
4242
<button {...props}>
4343
{emoji.url ? (
44-
<img src={emoji.url} alt={emoji.label} width="1em" height="1em" />
44+
<img src={emoji.url} alt={emoji.label} style={{ width: "1em", height: "1em" }} />
4545
) : (
4646
emoji.emoji
4747
)}

0 commit comments

Comments
 (0)