Fix overlapping touch targets for profile header buttons (#10868)

This commit is contained in:
Spence Pope
2026-06-11 12:04:46 -04:00
committed by GitHub
parent 302026d684
commit ba72110a12
2 changed files with 8 additions and 2 deletions
+4 -2
View File
@@ -4,7 +4,6 @@ import {Trans, useLingui} from '@lingui/react/macro'
import {useNavigation} from '@react-navigation/native'
import {useQueryClient} from '@tanstack/react-query'
import {HITSLOP_20} from '#/lib/constants'
import {makeProfileLink} from '#/lib/routes/links'
import {type NavigationProp} from '#/lib/routes/types'
import {shareText, shareUrl} from '#/lib/sharing'
@@ -264,7 +263,10 @@ let ProfileMenu = ({
{...props}
testID="profileHeaderDropdownBtn"
label={l`More options`}
hitSlop={HITSLOP_20}
// hitSlop reaches outside parent views on iOS, so the
// left inset must stay within half of the 4pt row gap or
// it steals taps from the adjacent header button
hitSlop={{top: 6, bottom: 6, left: 2, right: 12}}
variant="solid"
color="secondary"
size="small"