Skip to content

Commit

Permalink
fix: avatar header title flex
Browse files Browse the repository at this point in the history
  • Loading branch information
pwysowski committed Apr 14, 2020
1 parent 8f4e4d6 commit ec1ba5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/predefinedComponents/AvatarHeader/AvatarHeader.js
Expand Up @@ -133,7 +133,7 @@ class AvatarHeader extends React.Component {
{ opacity: authorOpacity }
]}
>
<Text style={styles.message}>{title}</Text>
<Text numberOfLines={4} style={[styles.message, styles.foregroundTitle]}>{title}</Text>
</Animated.View>
<Animated.View style={[styles.infoContainer, { opacity: aboutOpacity }]}>
<Text style={styles.infoText}>{subtitle}</Text>
Expand Down
8 changes: 5 additions & 3 deletions src/predefinedComponents/AvatarHeader/AvatarHeader.styles.js
Expand Up @@ -30,7 +30,6 @@ export default StyleSheet.create({
marginRight: 12
},
infoContainer: {
flex: 1,
flexDirection: 'row',
marginBottom: 16
},
Expand All @@ -42,6 +41,7 @@ export default StyleSheet.create({
width: 56
},
infoText: {
flexGrow: 1,
color: colors.white,
fontSize: constants.normalizedFontSize(16),
lineHeight: 24
Expand All @@ -63,7 +63,6 @@ export default StyleSheet.create({
},
userModalMessageContainer: {
marginTop: 12,
flex: 5,
paddingBottom: 8
},
rightHeaderButton: {
Expand All @@ -72,5 +71,8 @@ export default StyleSheet.create({
},
leftHeaderButton: {
flex: 1,
},
foregroundTitle: {
flexGrow: 1,
}
})
})

0 comments on commit ec1ba5d

Please sign in to comment.