Skip to content

Commit

Permalink
pad right for treeview (#2849)
Browse files Browse the repository at this point in the history
* pad right for treeview

* add comment
  • Loading branch information
haileyok authored Feb 12, 2024
1 parent b936da1 commit b308d7e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/view/com/post-thread/PostThreadItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ let PostThreadItemLoaded = ({
: 8,
},
]}>
{/* If we are in threaded mode, the avatar is rendered in PostMeta */}
{!isThreadedChild && (
<View style={styles.layoutAvi}>
<PreviewableUserAvatar
Expand All @@ -500,7 +501,12 @@ let PostThreadItemLoaded = ({
</View>
)}

<View style={styles.layoutContent}>
<View
style={
isThreadedChild
? styles.layoutContentThreaded
: styles.layoutContent
}>
<PostMeta
author={post.author}
authorHasWarning={!!post.author.labels?.length}
Expand Down Expand Up @@ -709,6 +715,10 @@ const styles = StyleSheet.create({
flex: 1,
marginLeft: 10,
},
layoutContentThreaded: {
flex: 1,
paddingRight: 10,
},
meta: {
flexDirection: 'row',
paddingVertical: 2,
Expand Down

0 comments on commit b308d7e

Please sign in to comment.