diff options
author | Eric Bailey <git@esb.lol> | 2025-06-18 11:24:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-18 09:24:27 -0700 |
commit | 32ba17a4f1dab9c6f4120a12ed8baa7fc7d01779 (patch) | |
tree | 4d44ae818472b8c2096ad08115fc64f177dc4464 /src/screens/PostThread/components/ThreadItemAnchor.tsx | |
parent | f83335f1102ecb451ea4ee53f35f711f528956c8 (diff) | |
download | voidsky-32ba17a4f1dab9c6f4120a12ed8baa7fc7d01779.tar.zst |
Fix anchor follow button alignment (#8522)
Diffstat (limited to 'src/screens/PostThread/components/ThreadItemAnchor.tsx')
-rw-r--r-- | src/screens/PostThread/components/ThreadItemAnchor.tsx | 92 |
1 files changed, 47 insertions, 45 deletions
diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx index 907fb9a7b..05088cb48 100644 --- a/src/screens/PostThread/components/ThreadItemAnchor.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx @@ -319,57 +319,59 @@ const ThreadItemAnchorInner = memo(function ThreadItemAnchorInner({ live={live} onBeforePress={onOpenAuthor} /> - <ProfileHoverCard did={post.author.did}> - <View style={[a.flex_1]}> - <View style={[a.flex_row, a.align_center]}> - <Link - to={authorHref} - style={[a.flex_shrink]} - label={sanitizeDisplayName( - post.author.displayName || - sanitizeHandle(post.author.handle), - moderation.ui('displayName'), - )} - onPress={onOpenAuthor}> - <Text - emoji - style={[ - a.text_lg, - a.font_bold, - a.leading_snug, - a.self_start, - ]} - numberOfLines={1}> - {sanitizeDisplayName( + <View style={[a.flex_1, a.align_start]}> + <ProfileHoverCard did={post.author.did}> + <View style={[a.flex_1]}> + <View style={[a.flex_row, a.align_center]}> + <Link + to={authorHref} + style={[a.flex_shrink]} + label={sanitizeDisplayName( post.author.displayName || sanitizeHandle(post.author.handle), moderation.ui('displayName'), )} - </Text> - </Link> - - <View style={[{paddingLeft: 3, top: -1}]}> - <VerificationCheckButton profile={authorShadow} size="md" /> + onPress={onOpenAuthor}> + <Text + emoji + style={[ + a.text_lg, + a.font_bold, + a.leading_snug, + a.self_start, + ]} + numberOfLines={1}> + {sanitizeDisplayName( + post.author.displayName || + sanitizeHandle(post.author.handle), + moderation.ui('displayName'), + )} + </Text> + </Link> + + <View style={[{paddingLeft: 3, top: -1}]}> + <VerificationCheckButton profile={authorShadow} size="md" /> + </View> + </View> + <View style={[a.align_start]}> + <Link + style={[a.flex_shrink]} + to={authorHref} + label={sanitizeHandle(post.author.handle, '@')}> + <Text + style={[ + a.text_md, + a.leading_snug, + t.atoms.text_contrast_medium, + ]} + numberOfLines={1}> + {sanitizeHandle(post.author.handle, '@')} + </Text> + </Link> </View> </View> - <View style={[a.align_start]}> - <Link - style={[a.flex_shrink]} - to={authorHref} - label={sanitizeHandle(post.author.handle, '@')}> - <Text - style={[ - a.text_md, - a.leading_snug, - t.atoms.text_contrast_medium, - ]} - numberOfLines={1}> - {sanitizeHandle(post.author.handle, '@')} - </Text> - </Link> - </View> - </View> - </ProfileHoverCard> + </ProfileHoverCard> + </View> {showFollowButton && ( <View> <PostThreadFollowBtn did={post.author.did} /> |