diff options
author | dan <dan.abramov@gmail.com> | 2024-01-25 22:48:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 14:48:25 -0800 |
commit | 335bef3d308e6aff2238fc4820bd39c8f7517112 (patch) | |
tree | bd28b9446ca100bd1fa8b5d0f3706b2cff96223c /src | |
parent | ab200285c5197e97c6ac9878c058161eb87a0955 (diff) | |
download | voidsky-335bef3d308e6aff2238fc4820bd39c8f7517112.tar.zst |
Present highlighted post as part of the thread (#2628)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 15 |
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, }, |