Update APIs
This commit is contained in:
@@ -191,7 +191,8 @@ 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 &&
|
||||||
|
!item.ui.precedesChildReadMore && {
|
||||||
paddingBottom: OUTER_SPACE / 2,
|
paddingBottom: OUTER_SPACE / 2,
|
||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user