about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-09-12 13:54:20 -0500
committerEric Bailey <git@esb.lol>2024-09-12 13:54:20 -0500
commit1f2e4b26c0e6a01bf6a297b333ba7c7f96149006 (patch)
treeccd7adc3936756f9377df716a3c1a4ab352edbe3
parent7bba213e1ac791a3284a48dc0e0f493f54d9c933 (diff)
downloadvoidsky-1f2e4b26c0e6a01bf6a297b333ba7c7f96149006.tar.zst
Handle overflow of bottom text
-rw-r--r--src/components/dialogs/nuxs/TenMillion/index.tsx18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/components/dialogs/nuxs/TenMillion/index.tsx b/src/components/dialogs/nuxs/TenMillion/index.tsx
index db5e19da7..786c635c1 100644
--- a/src/components/dialogs/nuxs/TenMillion/index.tsx
+++ b/src/components/dialogs/nuxs/TenMillion/index.tsx
@@ -424,13 +424,15 @@ export function TenMillionInner({userNumber}: {userNumber: number}) {
                             moderation.ui('displayName'),
                           )}
                         </Text>
-                        <View style={[a.flex_row, a.justify_between]}>
+                        <View
+                          style={[a.flex_row, a.justify_between, a.gap_4xl]}>
                           <Text
+                            numberOfLines={1}
                             style={[
+                              a.flex_1,
                               a.text_sm,
                               a.font_semibold,
-                              ,
-                              a.leading_tight,
+                              a.leading_snug,
                               lightTheme.atoms.text_contrast_medium,
                             ]}>
                             {sanitizeHandle(profile.handle, '@')}
@@ -438,16 +440,22 @@ export function TenMillionInner({userNumber}: {userNumber: number}) {
 
                           {profile.createdAt && (
                             <Text
+                              numberOfLines={1}
+                              ellipsizeMode="head"
                               style={[
+                                a.flex_1,
                                 a.text_sm,
                                 a.font_semibold,
-                                a.leading_tight,
+                                a.leading_snug,
+                                a.text_right,
                                 lightTheme.atoms.text_contrast_low,
                               ]}>
                               <Trans>
                                 Joined{' '}
                                 {i18n.date(profile.createdAt, {
-                                  dateStyle: 'long',
+                                  month: 'short',
+                                  day: 'numeric',
+                                  year: 'numeric',
                                 })}
                               </Trans>
                             </Text>