MM-11207 Fixed wrapping of username in menu (#1930)

This commit is contained in:
Harrison Healey 2018-07-17 19:22:02 -04:00 committed by Saturnino Abril
parent 0e3b4fd139
commit 0d91ef64a1

View file

@ -45,13 +45,21 @@ export default class UserInfo extends PureComponent {
/>
<View style={style.wrapper}>
<View>
<Text style={style.username}>
<Text
style={style.username}
numberOfLines={1}
>
{`@${user.username}`}
</Text>
</View>
{Boolean(fullName) &&
<View>
<Text style={style.fullName}>{fullName}</Text>
<Text
style={style.fullName}
numberOfLines={1}
>
{fullName}
</Text>
</View>
}
</View>
@ -69,6 +77,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
flexDirection: 'row',
},
wrapper: {
flex: 1,
marginLeft: 10,
},
username: {