diff options
author | Hailey <me@haileyok.com> | 2024-10-11 16:24:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-11 16:24:22 -0700 |
commit | 907b8d17f5784d520d917712dea3acef591db514 (patch) | |
tree | 88c53132667d87310308f182362a47141355d5d3 /src | |
parent | e53b9729570d2b58756972f75a40ae4000d03ebd (diff) | |
download | voidsky-907b8d17f5784d520d917712dea3acef591db514.tar.zst |
shift hitslop of avi follow button (#5730)
* shift the hitslop of the follow button * increase slop
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/posts/AviFollowButton.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/posts/AviFollowButton.tsx b/src/view/com/posts/AviFollowButton.tsx index 00428cbe6..269d4eb5a 100644 --- a/src/view/com/posts/AviFollowButton.tsx +++ b/src/view/com/posts/AviFollowButton.tsx @@ -5,7 +5,6 @@ import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' -import {createHitslop} from '#/lib/constants' import {NavigationProp} from '#/lib/routes/types' import {sanitizeDisplayName} from '#/lib/strings/display-names' import {useProfileShadow} from '#/state/cache/profile-shadow' @@ -85,7 +84,12 @@ export function AviFollowButton({ {!isFollowing && ( <Button label={_(msg`Open ${name} profile shortcut menu`)} - hitSlop={createHitslop(3)} + hitSlop={{ + top: 0, + left: 0, + right: 5, + bottom: 5, + }} style={[ a.rounded_full, a.absolute, |