center user/avatar if no text in carousel post

This commit is contained in:
vineyardbovines
2026-04-06 09:14:04 -04:00
parent b1e58fa438
commit 2acc497ae3
2 changed files with 16 additions and 2 deletions
+8 -1
View File
@@ -181,7 +181,11 @@ function PostInner({
type={post.author.associated?.labeler ? 'labeler' : 'user'}
/>
</View>
<View style={styles.layoutContent}>
<View
style={[
styles.layoutContent,
!richText.text && styles.layoutContentNoText,
]}>
<PostMeta
author={post.author}
moderation={moderation}
@@ -260,6 +264,9 @@ const styles = StyleSheet.create({
layoutContent: {
flex: 1,
},
layoutContentNoText: {
paddingTop: 10,
},
alert: {
marginBottom: 6,
},
+8 -1
View File
@@ -359,7 +359,11 @@ let FeedItemInner = ({
/>
)}
</View>
<View style={styles.layoutContent}>
<View
style={[
styles.layoutContent,
!richText.text && styles.layoutContentNoText,
]}>
<PostMeta
author={post.author}
moderation={moderation}
@@ -532,6 +536,9 @@ const styles = StyleSheet.create({
flex: 1,
zIndex: 0,
},
layoutContentNoText: {
paddingTop: 10,
},
alert: {
marginTop: 6,
marginBottom: 6,