diff options
author | Hailey <me@haileyok.com> | 2024-02-12 14:27:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 14:27:08 -0800 |
commit | b308d7e65d6956f241d865e1e79e803e0525c533 (patch) | |
tree | 0a759406fcaa7f5f89dcc50195b3c4b121cbac3f /src | |
parent | b936da1c0fa7b8a49e84a1b36ae064db9f8c0e47 (diff) | |
download | voidsky-b308d7e65d6956f241d865e1e79e803e0525c533.tar.zst |
pad right for treeview (#2849)
* pad right for treeview * add comment
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 17528b14e..826d0d161 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -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 @@ -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} @@ -709,6 +715,10 @@ const styles = StyleSheet.create({ flex: 1, marginLeft: 10, }, + layoutContentThreaded: { + flex: 1, + paddingRight: 10, + }, meta: { flexDirection: 'row', paddingVertical: 2, |