Present highlighted post as part of the thread (#2628)

zio/stable
dan 2024-01-25 22:48:25 +00:00 committed by GitHub
parent ab200285c5
commit 335bef3d30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 2 deletions

View File

@ -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,
},