Almost there with read mores

This commit is contained in:
Eric Bailey
2025-05-27 23:27:59 -05:00
parent 526bfedf82
commit 3247fe1137
4 changed files with 63 additions and 27 deletions
@@ -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