Fix render bug on native
This commit is contained in:
@@ -269,7 +269,7 @@ let PostThreadItemLoaded = ({
|
|||||||
{item.ui.showChildReplyLine && (
|
{item.ui.showChildReplyLine && (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.h_full,
|
a.flex_1,
|
||||||
t.atoms.border_contrast_low,
|
t.atoms.border_contrast_low,
|
||||||
{
|
{
|
||||||
borderRightWidth: 2,
|
borderRightWidth: 2,
|
||||||
@@ -288,16 +288,18 @@ let PostThreadItemLoaded = ({
|
|||||||
additionalCauses={additionalPostAlerts}
|
additionalCauses={additionalPostAlerts}
|
||||||
/>
|
/>
|
||||||
{richText?.text ? (
|
{richText?.text ? (
|
||||||
<RichText
|
<View>
|
||||||
enableTags
|
<RichText
|
||||||
value={richText}
|
enableTags
|
||||||
style={[a.flex_1, a.text_md]}
|
value={richText}
|
||||||
numberOfLines={
|
style={[a.flex_1, a.text_md]}
|
||||||
limitLines ? MAX_POST_LINES : undefined
|
numberOfLines={
|
||||||
}
|
limitLines ? MAX_POST_LINES : undefined
|
||||||
authorHandle={post.author.handle}
|
}
|
||||||
shouldProxyLinks={true}
|
authorHandle={post.author.handle}
|
||||||
/>
|
shouldProxyLinks={true}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
{limitLines ? (
|
{limitLines ? (
|
||||||
<TextLink
|
<TextLink
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export function usePostThread({
|
|||||||
const {data} = await agent.app.bsky.unspecced.getPostThreadV2({
|
const {data} = await agent.app.bsky.unspecced.getPostThreadV2({
|
||||||
anchor: params.anchor!,
|
anchor: params.anchor!,
|
||||||
branchingFactor: params.view === 'linear' ? 1 : undefined,
|
branchingFactor: params.view === 'linear' ? 1 : undefined,
|
||||||
below: 10,
|
below: 4,
|
||||||
sort: params.sort,
|
sort: params.sort,
|
||||||
prioritizeFollowedUsers: params.prioritizeFollowedUsers,
|
prioritizeFollowedUsers: params.prioritizeFollowedUsers,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user