diff options
author | dan <dan.abramov@gmail.com> | 2024-06-04 00:38:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 00:38:12 +0100 |
commit | 3b55f61d5f0111287be56b76a1a342256d3f2a95 (patch) | |
tree | cccff81e869bdfd7a0d0000f463fc71c40c031ae /src | |
parent | 8c596b61c018e0156a92fe7d0ca7c4b9bcd2d46d (diff) | |
download | voidsky-3b55f61d5f0111287be56b76a1a342256d3f2a95.tar.zst |
Avi follow experiment tweaks (#4341)
* Move avi button to visually align content * Fix wrong prop warning * Remove avi follow from post thread
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 17 | ||||
-rw-r--r-- | src/view/com/posts/AviFollowButton.tsx | 4 | ||||
-rw-r--r-- | src/view/com/posts/AviFollowButton.web.tsx | 6 |
3 files changed, 13 insertions, 14 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 096305a23..4827aef51 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -40,7 +40,6 @@ import {LabelsOnMyPost} from '../../../components/moderation/LabelsOnMe' import {PostAlerts} from '../../../components/moderation/PostAlerts' import {PostHider} from '../../../components/moderation/PostHider' import {getTranslatorLink, isPostInLanguage} from '../../../locale/helpers' -import {AviFollowButton} from '../posts/AviFollowButton' import {WhoCanReply} from '../threadgate/WhoCanReply' import {ErrorMessage} from '../util/error/ErrorMessage' import {Link, TextLink} from '../util/Link' @@ -472,16 +471,12 @@ let PostThreadItemLoaded = ({ {/* If we are in threaded mode, the avatar is rendered in PostMeta */} {!isThreadedChild && ( <View style={styles.layoutAvi}> - <AviFollowButton author={post.author} moderation={moderation}> - <PreviewableUserAvatar - size={38} - profile={post.author} - moderation={moderation.ui('avatar')} - type={ - post.author.associated?.labeler ? 'labeler' : 'user' - } - /> - </AviFollowButton> + <PreviewableUserAvatar + size={38} + profile={post.author} + moderation={moderation.ui('avatar')} + type={post.author.associated?.labeler ? 'labeler' : 'user'} + /> {showChildReplyLine && ( <View diff --git a/src/view/com/posts/AviFollowButton.tsx b/src/view/com/posts/AviFollowButton.tsx index 7a7b513cc..0497c80bc 100644 --- a/src/view/com/posts/AviFollowButton.tsx +++ b/src/view/com/posts/AviFollowButton.tsx @@ -97,8 +97,8 @@ export function AviFollowButton({ }), a.absolute, { - bottom: 0, - right: 0, + bottom: -1, + right: -1, borderWidth: 1, borderColor: t.atoms.bg.backgroundColor, }, diff --git a/src/view/com/posts/AviFollowButton.web.tsx b/src/view/com/posts/AviFollowButton.web.tsx index 6ad3c9f1f..90b2ddeec 100644 --- a/src/view/com/posts/AviFollowButton.web.tsx +++ b/src/view/com/posts/AviFollowButton.web.tsx @@ -1 +1,5 @@ -export {Fragment as AviFollowButton} from 'react' +import React from 'react' + +export function AviFollowButton({children}: {children: React.ReactNode}) { + return children +} |