From 06df08c33e0341a0cd38a8a946dc6e9846c3265c Mon Sep 17 00:00:00 2001 From: Mohammad Javad Date: Sat, 25 Feb 2023 12:21:23 +0330 Subject: [PATCH] SVG custom images doesn't work the custom svg images is loaded, but the default width of img for svg files is 0 and they doesn't show, is this a right solution? --- packages/emoji-mart/src/components/Emoji/Emoji.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/emoji-mart/src/components/Emoji/Emoji.tsx b/packages/emoji-mart/src/components/Emoji/Emoji.tsx index 267ab0ef9..325d58e91 100644 --- a/packages/emoji-mart/src/components/Emoji/Emoji.tsx +++ b/packages/emoji-mart/src/components/Emoji/Emoji.tsx @@ -42,6 +42,7 @@ export default function Emoji(props) { maxWidth: props.size || '1em', maxHeight: props.size || '1em', display: 'inline-block', + width: '100%' }} alt={emojiSkin.native || emojiSkin.shortcodes} src={imageSrc}