Skip to content

Commit 074a99c

Browse files
chrisbobbegnprice
authored andcommitted
AccountItem: Fix trash icon touch target's invasion of notif-warning icon's
1 parent d44f522 commit 074a99c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/account/AccountItem.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const styles = createStyleSheet({
4040
marginVertical: 2,
4141
},
4242
icon: {
43-
marginLeft: 16,
43+
marginLeft: 24,
4444
},
4545
signedOutText: {
4646
fontStyle: 'italic',
@@ -113,22 +113,20 @@ export default function AccountItem(props: Props): Node {
113113
)}
114114
</View>
115115
{notificationReport.problems.length > 0 && (
116-
<Pressable hitSlop={12} onPress={handlePressNotificationWarning}>
116+
<Pressable style={styles.icon} hitSlop={12} onPress={handlePressNotificationWarning}>
117117
{({ pressed }) => (
118118
<IconAlertTriangle
119-
style={styles.icon}
120119
size={24}
121120
color={pressed ? Color(kWarningColor).fade(0.5).toString() : kWarningColor}
122121
/>
123122
)}
124123
</Pressable>
125124
)}
126125
{!showDoneIcon ? (
127-
<Pressable hitSlop={12} onPress={() => props.onRemove(props.account)}>
126+
<Pressable style={styles.icon} hitSlop={12} onPress={() => props.onRemove(props.account)}>
128127
{({ pressed }) => (
129128
<IconTrash
130129
size={24}
131-
style={styles.icon}
132130
color={pressed ? Color('crimson').fade(0.5).toString() : 'crimson'}
133131
/>
134132
)}

0 commit comments

Comments
 (0)