about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-05 15:40:33 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-05 15:40:33 -0600
commit5821975be6874b53f9f9178274d31d46d97db067 (patch)
tree03ed927683df4e51fe614b2a135a790f67f3bb5e
parent7561b19f3db902ecadeacfa961f77adab1252e39 (diff)
downloadvoidsky-5821975be6874b53f9f9178274d31d46d97db067.tar.zst
Enlarge the small emoji-only replies
-rw-r--r--src/view/com/util/RichText.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/view/com/util/RichText.tsx b/src/view/com/util/RichText.tsx
index 835a3515b..66b0e2536 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 style={style}>{text}</Text>
+    }
     return <Text style={style}>{text}</Text>
   }
   if (!style) style = []