diff options
author | Kuwa Lee <kuwalee1069@gmail.com> | 2024-06-20 16:26:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 16:26:22 +0800 |
commit | a33e370d229ef406363e389b8cdfd05c1785d573 (patch) | |
tree | 599a1ef4a71e1cd5ebfe4007eec4b4c737a42bbb /src/view/com/util/post-ctrls/PostCtrls.tsx | |
parent | 7deea7ddd450071f702f3aaf52a7763012e4e370 (diff) | |
parent | 80197556f176723b619349dc060d1b7001472d47 (diff) | |
download | voidsky-a33e370d229ef406363e389b8cdfd05c1785d573.tar.zst |
Merge branch 'bluesky-social:main' into zh
Diffstat (limited to 'src/view/com/util/post-ctrls/PostCtrls.tsx')
-rw-r--r-- | src/view/com/util/post-ctrls/PostCtrls.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index 55fb4a334..472ce4043 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -15,7 +15,7 @@ import { import {msg, plural} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {HITSLOP_10, HITSLOP_20} from '#/lib/constants' +import {POST_CTRL_HITSLOP} from '#/lib/constants' import {useHaptics} from '#/lib/haptics' import {makeProfileLink} from '#/lib/routes/links' import {shareUrl} from '#/lib/sharing' @@ -215,7 +215,7 @@ let PostCtrls = ({ other: 'Reply (# replies)', })} accessibilityHint="" - hitSlop={big ? HITSLOP_20 : HITSLOP_10}> + hitSlop={POST_CTRL_HITSLOP}> <Bubble style={[defaultCtrlColor, {pointerEvents: 'none'}]} width={big ? 22 : 18} @@ -258,7 +258,7 @@ let PostCtrls = ({ }) } accessibilityHint="" - hitSlop={big ? HITSLOP_20 : HITSLOP_10}> + hitSlop={POST_CTRL_HITSLOP}> {post.viewer?.like ? ( <HeartIconFilled style={s.likeColor} width={big ? 22 : 18} /> ) : ( @@ -299,7 +299,7 @@ let PostCtrls = ({ }} accessibilityLabel={_(msg`Share`)} accessibilityHint="" - hitSlop={big ? HITSLOP_20 : HITSLOP_10}> + hitSlop={POST_CTRL_HITSLOP}> <ArrowOutOfBox style={[defaultCtrlColor, {pointerEvents: 'none'}]} width={22} @@ -325,7 +325,7 @@ let PostCtrls = ({ record={record} richText={richText} style={{padding: 5}} - hitSlop={big ? HITSLOP_20 : HITSLOP_10} + hitSlop={POST_CTRL_HITSLOP} timestamp={post.indexedAt} /> </View> |