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:
dan
2024-11-23 19:13:17 +00:00
committed by GitHub
parent e428474478
commit b1c1c49897
3 changed files with 14 additions and 21 deletions
+8 -1
View File
@@ -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,
+1 -1
View File
@@ -618,10 +618,10 @@ const styles = StyleSheet.create({
layout: {
flexDirection: 'row',
marginTop: 1,
gap: 10,
},
layoutAvi: {
paddingLeft: 8,
paddingRight: 10,
position: 'relative',
zIndex: 999,
},