about summary refs log tree commit diff
path: root/src/view/com/posts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-06-04 00:38:12 +0100
committerGitHub <noreply@github.com>2024-06-04 00:38:12 +0100
commit3b55f61d5f0111287be56b76a1a342256d3f2a95 (patch)
treecccff81e869bdfd7a0d0000f463fc71c40c031ae /src/view/com/posts
parent8c596b61c018e0156a92fe7d0ca7c4b9bcd2d46d (diff)
downloadvoidsky-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/view/com/posts')
-rw-r--r--src/view/com/posts/AviFollowButton.tsx4
-rw-r--r--src/view/com/posts/AviFollowButton.web.tsx6
2 files changed, 7 insertions, 3 deletions
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
+}