RN-71 Timestamps are not aligned with username (#681)
This commit is contained in:
parent
e010af3be1
commit
e89b63441b
1 changed files with 13 additions and 7 deletions
|
|
@ -601,9 +601,11 @@ class Post extends PureComponent {
|
|||
<View style={style.rightColumn}>
|
||||
<View style={[style.postInfoContainer, (isPostPendingOrFailed(post) && style.pendingPost)]}>
|
||||
{displayName}
|
||||
<Text style={style.time}>
|
||||
<FormattedTime value={this.props.post.create_at}/>
|
||||
</Text>
|
||||
<View style={style.timeContainer}>
|
||||
<Text style={style.time}>
|
||||
<FormattedTime value={this.props.post.create_at}/>
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
<View>
|
||||
{this.renderCommentedOnMessage(style)}
|
||||
|
|
@ -624,9 +626,11 @@ class Post extends PureComponent {
|
|||
<View style={[style.postInfoContainer, (isPostPendingOrFailed(post) && style.pendingPost)]}>
|
||||
<View style={{flexDirection: 'row', flex: 1}}>
|
||||
{displayName}
|
||||
<Text style={style.time}>
|
||||
<FormattedTime value={this.props.post.create_at}/>
|
||||
</Text>
|
||||
<View style={style.timeContainer}>
|
||||
<Text style={style.time}>
|
||||
<FormattedTime value={this.props.post.create_at}/>
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
{(commentCount > 0 && renderReplies) &&
|
||||
<TouchableOpacity
|
||||
|
|
@ -720,12 +724,14 @@ const getStyleSheet = makeStyleSheetFromTheme((theme) => {
|
|||
paddingHorizontal: 4
|
||||
},
|
||||
time: {
|
||||
alignSelf: 'flex-end',
|
||||
color: theme.centerChannelColor,
|
||||
fontSize: 12,
|
||||
marginLeft: 5,
|
||||
opacity: 0.5
|
||||
},
|
||||
timeContainer: {
|
||||
justifyContent: 'center'
|
||||
},
|
||||
commentedOn: {
|
||||
color: changeOpacity(theme.centerChannelColor, 0.65),
|
||||
lineHeight: 21
|
||||
|
|
|
|||
Loading…
Reference in a new issue