about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-07-17 23:03:55 +0300
committerGitHub <noreply@github.com>2025-07-17 23:03:55 +0300
commit08a1a806ef68328c6b3213b5c50eb047497327a7 (patch)
tree918dfaa3e5f0f43f125d8a99e51c77254343918e /src
parent964eed54eaa53f0912b336391642654cb8a0f605 (diff)
downloadvoidsky-08a1a806ef68328c6b3213b5c50eb047497327a7.tar.zst
Fix checkmark overflow in profile card (#8612)
Diffstat (limited to 'src')
-rw-r--r--src/components/ProfileCard.tsx12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx
index 4aec74880..e01c27655 100644
--- a/src/components/ProfileCard.tsx
+++ b/src/components/ProfileCard.tsx
@@ -1,4 +1,4 @@
-import React from 'react'
+import {useMemo} from 'react'
 import {type GestureResponderEvent, View} from 'react-native'
 import {
   moderateProfile,
@@ -277,7 +277,13 @@ export function Name({
     <View style={[a.flex_row, a.align_center]}>
       <Text
         emoji
-        style={[a.text_md, a.font_bold, a.leading_snug, a.self_start]}
+        style={[
+          a.text_md,
+          a.font_bold,
+          a.leading_snug,
+          a.self_start,
+          a.flex_shrink,
+        ]}
         numberOfLines={1}>
         {name}
       </Text>
@@ -345,7 +351,7 @@ export function Description({
   numberOfLines?: number
 }) {
   const profile = useProfileShadow(profileUnshadowed)
-  const rt = React.useMemo(() => {
+  const rt = useMemo(() => {
     if (!('description' in profile)) return
     const rt = new RichTextApi({text: profile.description || ''})
     rt.detectFacetsWithoutResolution()