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, paddingHorizontal: OUTER_SPACE,
}, },
// If there's no next child, add a little padding to bottom // If there's no next child, add a little padding to bottom
!item.ui.showChildReplyLine && { !item.ui.showChildReplyLine &&
paddingBottom: OUTER_SPACE / 2, !item.ui.precedesChildReadMore && {
}, paddingBottom: OUTER_SPACE / 2,
},
]}> ]}>
<PostHider <PostHider
testID={`postThreadItem-by-${post.author.handle}`} testID={`postThreadItem-by-${post.author.handle}`}
@@ -233,7 +234,8 @@ let PostThreadItemLoaded = ({
live={live} live={live}
/> />
{item.ui.showChildReplyLine && ( {(item.ui.showChildReplyLine ||
item.ui.precedesChildReadMore) && (
<View <View
style={[ style={[
a.mx_auto, a.mx_auto,
+1 -1
View File
@@ -51,7 +51,7 @@ export function usePostThread({
if (!params.anchor) return if (!params.anchor) return
const placeholder = getThreadPlaceholder(qc, params.anchor) const placeholder = getThreadPlaceholder(qc, params.anchor)
if (placeholder) { if (placeholder) {
return {thread: [placeholder]} return {thread: [placeholder], hasHiddenReplies: false}
} }
return return
}, },