feat: adjust custom emoji size in content preview
This commit is contained in:
parent
ac007acbd7
commit
c110b303d7
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ export default function Content({
|
||||||
const shortcode = node.data.split(':')[1]
|
const shortcode = node.data.split(':')[1]
|
||||||
const emoji = emojiInfos?.find((e) => e.shortcode === shortcode)
|
const emoji = emojiInfos?.find((e) => e.shortcode === shortcode)
|
||||||
if (!emoji) return node.data
|
if (!emoji) return node.data
|
||||||
return <Emoji key={index} emoji={emoji} classNames={{ img: 'mb-1' }} />
|
return <Emoji key={index} emoji={emoji} classNames={{ img: 'size-4' }} />
|
||||||
}
|
}
|
||||||
return node.data
|
return node.data
|
||||||
})}
|
})}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue