Match post text size, provide interaction feedback

This commit is contained in:
Eric Bailey
2025-06-13 16:13:44 -05:00
parent 7ec4d7b1d5
commit 4d47c1528d
6 changed files with 68 additions and 42 deletions
@@ -300,16 +300,20 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({
additionalCauses={additionalPostAlerts}
/>
{richText?.text ? (
<RichText
enableTags
value={richText}
style={[a.flex_1, a.text_md]}
numberOfLines={limitLines ? MAX_POST_LINES : undefined}
authorHandle={post.author.handle}
shouldProxyLinks={true}
/>
<>
<RichText
enableTags
value={richText}
style={[a.flex_1, a.text_md]}
numberOfLines={limitLines ? MAX_POST_LINES : undefined}
authorHandle={post.author.handle}
shouldProxyLinks={true}
/>
{limitLines && (
<ShowMore style={[a.text_md]} onPress={onPressShowMore} />
)}
</>
) : undefined}
{limitLines && <ShowMore onPress={onPressShowMore} />}
{post.embed && (
<View style={[a.pb_xs]}>
<PostEmbeds
@@ -344,7 +344,7 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
additionalCauses={additionalPostAlerts}
/>
{richText?.text ? (
<View>
<>
<RichText
enableTags
value={richText}
@@ -353,9 +353,14 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
authorHandle={post.author.handle}
shouldProxyLinks={true}
/>
</View>
{limitLines && (
<ShowMore
style={[a.text_md]}
onPress={onPressShowMore}
/>
)}
</>
) : undefined}
{limitLines && <ShowMore onPress={onPressShowMore} />}
{post.embed && (
<View style={[a.pb_xs]}>
<PostEmbeds