Fix avi button hitslops (#6662)
* Remove web hack from non-web file * Remove hitSlop on the wrong Pressable It is not doing anything useful. * Extend avi column to prevent hit rect clipping You can't click outside the parent on Android. * Bump pressed opacity to .8 * Slightly reduce avi button hitslops * Asymmetric hit slop
This commit is contained in:
@@ -95,7 +95,14 @@ export function AviFollowButton({
|
||||
<NativeDropdown items={items}>
|
||||
<View
|
||||
style={[
|
||||
{width: 30, height: 30},
|
||||
{
|
||||
// An asymmetric hit slop
|
||||
// to prioritize bottom right taps.
|
||||
paddingTop: 2,
|
||||
paddingLeft: 2,
|
||||
paddingBottom: 6,
|
||||
paddingRight: 6,
|
||||
},
|
||||
a.align_center,
|
||||
a.justify_center,
|
||||
a.rounded_full,
|
||||
|
||||
@@ -618,10 +618,10 @@ const styles = StyleSheet.create({
|
||||
layout: {
|
||||
flexDirection: 'row',
|
||||
marginTop: 1,
|
||||
gap: 10,
|
||||
},
|
||||
layoutAvi: {
|
||||
paddingLeft: 8,
|
||||
paddingRight: 10,
|
||||
position: 'relative',
|
||||
zIndex: 999,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user