Enlarge click targets for post controls and view header
This commit is contained in:
parent
67c4dcff37
commit
f3f3bfb335
3 changed files with 27 additions and 6 deletions
|
@ -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>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue