about summary refs log tree commit diff
path: root/src/view/screens/Settings.tsx
diff options
context:
space:
mode:
authorMary <148872143+mary-ext@users.noreply.github.com>2024-01-13 01:44:24 +0700
committerGitHub <noreply@github.com>2024-01-12 10:44:24 -0800
commit40c757afa9bf8f53da858a213227288d9affa5f7 (patch)
tree13b3070e17e5b31d08d39c331894dc6d8c25afdb /src/view/screens/Settings.tsx
parenta0e345fa015b4cb85e3e8fb8b6646493d7d2e0ae (diff)
downloadvoidsky-40c757afa9bf8f53da858a213227288d9affa5f7.tar.zst
fix: truncate long email address (#2493)
Diffstat (limited to 'src/view/screens/Settings.tsx')
-rw-r--r--src/view/screens/Settings.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx
index b4a3acbe3..1f117b45b 100644
--- a/src/view/screens/Settings.tsx
+++ b/src/view/screens/Settings.tsx
@@ -320,8 +320,14 @@ export function SettingsScreen({}: Props) {
                   />
                 </>
               )}
-              <Text type="lg" style={pal.text}>
-                {currentAccount.email || '(no email)'}{' '}
+              <Text
+                type="lg"
+                numberOfLines={1}
+                style={[
+                  pal.text,
+                  {overflow: 'hidden', marginRight: 4, flex: 1},
+                ]}>
+                {currentAccount.email || '(no email)'}
               </Text>
               <Link onPress={() => openModal({name: 'change-email'})}>
                 <Text type="lg" style={pal.link}>