about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx17
-rw-r--r--src/view/com/posts/AviFollowButton.tsx4
-rw-r--r--src/view/com/posts/AviFollowButton.web.tsx6
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
+}