From b308d7e65d6956f241d865e1e79e803e0525c533 Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Mon, 12 Feb 2024 14:27:08 -0800
Subject: pad right for treeview (#2849)

* pad right for treeview

* add comment
---
 src/view/com/post-thread/PostThreadItem.tsx | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

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,
-- 
cgit 1.4.1

