diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-11 08:38:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 10:38:54 -0500 |
commit | 19d6ded631b3a22bc44e7763bf1f75efa704be4d (patch) | |
tree | 6dce18c648a1ea22cbb7829fd97f8e3cbb72d06d /src | |
parent | 0192923ef3a13468d6a3cb86793c31af5e693335 (diff) | |
download | voidsky-19d6ded631b3a22bc44e7763bf1f75efa704be4d.tar.zst |
Prevent reply to from cascading (#610)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/post/Post.tsx | 20 | ||||
-rw-r--r-- | src/view/com/posts/FeedItem.tsx | 20 |
2 files changed, 24 insertions, 16 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 90698ab31..0b49995fe 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -235,15 +235,19 @@ const PostLoaded = observer( size={9} style={[pal.textLight, s.mr5]} /> - <Text type="sm" style={[pal.textLight, s.mr2]} lineHeight={1.2}> - Reply to - </Text> - <UserInfoText + <Text type="sm" - did={replyAuthorDid} - attr="displayName" - style={[pal.textLight]} - /> + style={[pal.textLight, s.mr2]} + lineHeight={1.2} + numberOfLines={1}> + Reply to{' '} + <UserInfoText + type="sm" + did={replyAuthorDid} + attr="displayName" + style={[pal.textLight]} + /> + </Text> </View> )} <ContentHider diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index ff1f46db1..b4708cf53 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -221,15 +221,19 @@ export const FeedItem = observer(function ({ s.mr5, ]} /> - <Text type="md" style={[pal.textLight, s.mr2]} lineHeight={1.2}> - Reply to - </Text> - <UserInfoText + <Text type="md" - did={replyAuthorDid} - attr="displayName" - style={[pal.textLight, s.ml2]} - /> + style={[pal.textLight, s.mr2]} + lineHeight={1.2} + numberOfLines={1}> + Reply to{' '} + <UserInfoText + type="md" + did={replyAuthorDid} + attr="displayName" + style={[pal.textLight, s.ml2]} + /> + </Text> </View> )} <ContentHider |