Update APIs

This commit is contained in:
Eric Bailey
2025-05-27 23:36:23 -05:00
parent 3247fe1137
commit 1fea99e2e8
2 changed files with 7 additions and 5 deletions
@@ -191,9 +191,10 @@ let PostThreadItemLoaded = ({
paddingHorizontal: OUTER_SPACE,
},
// If there's no next child, add a little padding to bottom
!item.ui.showChildReplyLine && {
paddingBottom: OUTER_SPACE / 2,
},
!item.ui.showChildReplyLine &&
!item.ui.precedesChildReadMore && {
paddingBottom: OUTER_SPACE / 2,
},
]}>
<PostHider
testID={`postThreadItem-by-${post.author.handle}`}
@@ -233,7 +234,8 @@ let PostThreadItemLoaded = ({
live={live}
/>
{item.ui.showChildReplyLine && (
{(item.ui.showChildReplyLine ||
item.ui.precedesChildReadMore) && (
<View
style={[
a.mx_auto,
+1 -1
View File
@@ -51,7 +51,7 @@ export function usePostThread({
if (!params.anchor) return
const placeholder = getThreadPlaceholder(qc, params.anchor)
if (placeholder) {
return {thread: [placeholder]}
return {thread: [placeholder], hasHiddenReplies: false}
}
return
},