fix: truncate long email address (#2493)

This commit is contained in:
Mary 2024-01-13 01:44:24 +07:00 committed by GitHub
parent a0e345fa01
commit 40c757afa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}>