fix: fix rendering of of text that has been emojified

pull/2757/head
William Grant 2 years ago
parent ff4366002b
commit b1cc6ad85e

@ -40,5 +40,6 @@ export const Emojify = (props: Props): JSX.Element => {
size = 1.0; size = 1.0;
} }
return <span style={{ fontSize: `${size}rem`, userSelect: 'inherit' }}>{rendered}</span>; // NOTE (Will): This should be em and not rem because we want to keep the inherited font size from the parent element and not the root
return <span style={{ fontSize: `${size}em`, userSelect: 'inherit' }}>{rendered}</span>;
}; };

Loading…
Cancel
Save