about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadItem.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-02-12 14:27:08 -0800
committerGitHub <noreply@github.com>2024-02-12 14:27:08 -0800
commitb308d7e65d6956f241d865e1e79e803e0525c533 (patch)
tree0a759406fcaa7f5f89dcc50195b3c4b121cbac3f /src/view/com/post-thread/PostThreadItem.tsx
parentb936da1c0fa7b8a49e84a1b36ae064db9f8c0e47 (diff)
downloadvoidsky-b308d7e65d6956f241d865e1e79e803e0525c533.tar.zst
pad right for treeview (#2849)
* pad right for treeview

* add comment
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx12
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,