center user/avatar if no text in carousel post
This commit is contained in:
@@ -181,7 +181,11 @@ function PostInner({
|
|||||||
type={post.author.associated?.labeler ? 'labeler' : 'user'}
|
type={post.author.associated?.labeler ? 'labeler' : 'user'}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.layoutContent}>
|
<View
|
||||||
|
style={[
|
||||||
|
styles.layoutContent,
|
||||||
|
!richText.text && styles.layoutContentNoText,
|
||||||
|
]}>
|
||||||
<PostMeta
|
<PostMeta
|
||||||
author={post.author}
|
author={post.author}
|
||||||
moderation={moderation}
|
moderation={moderation}
|
||||||
@@ -260,6 +264,9 @@ const styles = StyleSheet.create({
|
|||||||
layoutContent: {
|
layoutContent: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
},
|
||||||
|
layoutContentNoText: {
|
||||||
|
paddingTop: 10,
|
||||||
|
},
|
||||||
alert: {
|
alert: {
|
||||||
marginBottom: 6,
|
marginBottom: 6,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -359,7 +359,11 @@ let FeedItemInner = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.layoutContent}>
|
<View
|
||||||
|
style={[
|
||||||
|
styles.layoutContent,
|
||||||
|
!richText.text && styles.layoutContentNoText,
|
||||||
|
]}>
|
||||||
<PostMeta
|
<PostMeta
|
||||||
author={post.author}
|
author={post.author}
|
||||||
moderation={moderation}
|
moderation={moderation}
|
||||||
@@ -532,6 +536,9 @@ const styles = StyleSheet.create({
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
zIndex: 0,
|
zIndex: 0,
|
||||||
},
|
},
|
||||||
|
layoutContentNoText: {
|
||||||
|
paddingTop: 10,
|
||||||
|
},
|
||||||
alert: {
|
alert: {
|
||||||
marginTop: 6,
|
marginTop: 6,
|
||||||
marginBottom: 6,
|
marginBottom: 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user