Enlarge click targets for post controls and view header

This commit is contained in:
Paul Frazee 2022-12-05 10:18:38 -06:00
parent 67c4dcff37
commit f3f3bfb335
3 changed files with 27 additions and 6 deletions

View file

@ -18,6 +18,8 @@ import {useStores} from '../../../state'
import {ConfirmModel} from '../../../state/models/shell-ui'
import {TABS_ENABLED} from '../../../build-flags'
const HITSLOP = {left: 10, top: 10, right: 10, bottom: 10}
export interface DropdownItem {
icon?: IconProp
label: string
@ -61,7 +63,11 @@ export function DropdownBtn({
}
return (
<TouchableOpacity style={style} onPress={onPress} ref={ref}>
<TouchableOpacity
style={style}
onPress={onPress}
hitSlop={HITSLOP}
ref={ref}>
{children}
</TouchableOpacity>
)