diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx index 835a3515..66b0e253 100644 --- a/src/view/com/util/RichText.tsx +++ b/src/view/com/util/RichText.tsx @@ -23,6 +23,13 @@ export function RichText({ numberOfLines?: number }) { if (!entities?.length) { + if (/^\p{Extended_Pictographic}+$/u.test(text) && text.length <= 5) { + style = { + fontSize: 26, + lineHeight: 30, + } + return {text} + } return {text} } if (!style) style = []