about summary refs log tree commit diff
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-01-25 22:48:25 +0000
committerGitHub <noreply@github.com>2024-01-25 14:48:25 -0800
commit335bef3d308e6aff2238fc4820bd39c8f7517112 (patch)
treebd28b9446ca100bd1fa8b5d0f3706b2cff96223c
parentab200285c5197e97c6ac9878c058161eb87a0955 (diff)
downloadvoidsky-335bef3d308e6aff2238fc4820bd39c8f7517112.tar.zst
Present highlighted post as part of the thread (#2628)
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index a27ee0a58..95fd5aefb 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -250,7 +250,13 @@ let PostThreadItemLoaded = ({
 
         <View
           testID={`postThreadItem-by-${post.author.handle}`}
-          style={[styles.outer, styles.outerHighlighted, pal.border, pal.view]}
+          style={[
+            styles.outer,
+            styles.outerHighlighted,
+            rootUri === post.uri && styles.outerHighlightedRoot,
+            pal.border,
+            pal.view,
+          ]}
           accessible={false}>
           <PostSandboxWarning />
           <View style={styles.layout}>
@@ -726,10 +732,15 @@ const useStyles = () => {
       paddingLeft: 8,
     },
     outerHighlighted: {
-      paddingTop: 16,
+      borderTopWidth: 0,
+      paddingTop: 4,
       paddingLeft: 8,
       paddingRight: 8,
     },
+    outerHighlightedRoot: {
+      borderTopWidth: 1,
+      paddingTop: 16,
+    },
     noTopBorder: {
       borderTopWidth: 0,
     },