Fix render bug on native

This commit is contained in:
Eric Bailey
2025-05-29 19:10:33 -05:00
parent 412b9943b5
commit 10a77f0614
2 changed files with 14 additions and 12 deletions
@@ -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
+1 -1
View File
@@ -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,
}) })