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'} 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,
}, },
+8 -1
View File
@@ -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,