Set `background-size: cover` for custom emojis [Fix #117]
parent
1a2d400362
commit
274d8b3862
|
@ -80,7 +80,7 @@ const Emoji = (props) => {
|
||||||
height: props.size,
|
height: props.size,
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
backgroundImage: `url(${imageUrl})`,
|
backgroundImage: `url(${imageUrl})`,
|
||||||
backgroundSize: '100%',
|
backgroundSize: 'cover',
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let setHasEmoji = _getData(props)[`has_img_${props.set}`]
|
let setHasEmoji = _getData(props)[`has_img_${props.set}`]
|
||||||
|
|
Loading…
Reference in New Issue