Almost there with read mores
This commit is contained in:
@@ -192,22 +192,27 @@ let PostThreadItemLoaded = ({
|
||||
t.atoms.border_contrast_low,
|
||||
],
|
||||
]}>
|
||||
{Array.from(Array(indents)).map((_, n: number) => (
|
||||
<View
|
||||
key={`${post.uri}-padding-${n}`}
|
||||
style={[
|
||||
t.atoms.border_contrast_low,
|
||||
{
|
||||
borderRightWidth:
|
||||
item.ui.isDeadEnd && n === indents - 1 && !item.ui.hasReadMore
|
||||
? 0
|
||||
: REPLY_LINE_WIDTH,
|
||||
width: TREE_INDENT + TREE_AVI_WIDTH / 2,
|
||||
left: 1,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
))}
|
||||
{Array.from(Array(indents)).map((_, n: number) => {
|
||||
const isLastIteration = n === indents - 1
|
||||
return (
|
||||
<View
|
||||
key={`${post.uri}-padding-${n}`}
|
||||
style={[
|
||||
t.atoms.border_contrast_low,
|
||||
{
|
||||
borderRightWidth:
|
||||
isLastIteration &&
|
||||
item.ui.isDeadEnd &&
|
||||
!item.ui.precedesParentReadMore
|
||||
? 0
|
||||
: REPLY_LINE_WIDTH,
|
||||
width: TREE_INDENT + TREE_AVI_WIDTH / 2,
|
||||
left: 1,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
<View style={a.flex_1}>
|
||||
<SubtleHover>
|
||||
<View
|
||||
@@ -220,6 +225,9 @@ let PostThreadItemLoaded = ({
|
||||
!item.ui.showParentReplyLine && a.pt_lg,
|
||||
!item.ui.showChildReplyLine && a.pb_sm,
|
||||
],
|
||||
item.ui.isDeadEnd &&
|
||||
!item.ui.precedesParentReadMore &&
|
||||
!item.ui.precedesChildReadMore && [a.pb_sm],
|
||||
]}>
|
||||
{item.ui.indent > 1 && item.ui.parentHasBranchingReplies && (
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user