Skip to content

Commit

Permalink
lightbox header/footer: Make icons smaller.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Jan 30, 2021
1 parent a9499be commit 2e5ff37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lightbox/LightboxFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export default class LightboxFooter extends PureComponent<Props> {
<SafeAreaView mode="padding" edges={['right', 'bottom', 'left']}>
<View style={[styles.wrapper, style]}>
<Text style={styles.text}>{displayMessage}</Text>
<Pressable style={styles.iconTouchTarget} onPress={onOptionsPress} hitSlop={10}>
<Pressable style={styles.iconTouchTarget} onPress={onOptionsPress} hitSlop={12}>
{({ pressed }) => (
<Icon size={28} color={pressed ? 'gray' : 'white'} name="more-vertical" />
<Icon size={24} color={pressed ? 'gray' : 'white'} name="more-vertical" />
)}
</Pressable>
</View>
Expand Down
4 changes: 2 additions & 2 deletions src/lightbox/LightboxHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export default class LightboxHeader extends PureComponent<Props> {
{subheader}
</Text>
</View>
<Pressable style={styles.rightIconTouchTarget} onPress={onPressBack} hitSlop={10}>
{({ pressed }) => <Icon size={28} color={pressed ? 'gray' : 'white'} name="x" />}
<Pressable style={styles.rightIconTouchTarget} onPress={onPressBack} hitSlop={12}>
{({ pressed }) => <Icon size={24} color={pressed ? 'gray' : 'white'} name="x" />}
</Pressable>
</View>
</SafeAreaView>
Expand Down

0 comments on commit 2e5ff37

Please sign in to comment.