Skip to content

Commit

Permalink
Merge pull request #5532 from parasharrajat/ui-fixes
Browse files Browse the repository at this point in the history
fix: email overflow in Details page on Mobile devices
  • Loading branch information
chiragsalian committed Sep 29, 2021
2 parents d54f307 + 3f0a497 commit e1d0220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/CommunicationsLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const CommunicationsLink = props => (
{props.isSmallScreenWidth
? (
<Pressable
style={styles.mw100}
onPress={() => Linking.openURL(
props.type === CONST.LOGIN_TYPE.PHONE
? `tel:${props.value}`
Expand Down
2 changes: 1 addition & 1 deletion src/pages/DetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const DetailsPage = ({
type={isSMSLogin ? CONST.LOGIN_TYPE.PHONE : CONST.LOGIN_TYPE.EMAIL}
value={isSMSLogin ? getPhoneNumber(details) : details.login}
>
<Text numberOfLines={1}>
<Text numberOfLines={1} style={[styles.w100]}>
{isSMSLogin
? toLocalPhone(getPhoneNumber(details))
: details.login}
Expand Down

0 comments on commit e1d0220

Please sign in to comment.