From 5821975be6874b53f9f9178274d31d46d97db067 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 5 Dec 2022 15:40:33 -0600 Subject: [PATCH] Enlarge the small emoji-only replies --- src/view/com/util/RichText.tsx | 7 +++++++ 1 file changed, 7 insertions(+) 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 = []