Skip to content

Commit 6d35250

Browse files
fix: chevron alignment in TrustBadge (#25)
1 parent 120b437 commit 6d35250

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/trustBadge/Capsule/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { type FC, type ReactNode } from 'react';
2-
import { View, StyleSheet, Text } from 'react-native';
2+
import { Platform, View, StyleSheet, Text } from 'react-native';
33
import { useScaled } from '../../hooks/useScaled';
44

55
export const defaultHeight = 32;
@@ -48,8 +48,9 @@ const styles = StyleSheet.create({
4848
},
4949
chevron: {
5050
color: '#0A3942',
51-
fontSize: 26,
52-
marginTop: -4,
51+
fontSize: Platform.OS === 'ios' ? 24 : 14,
52+
marginTop: Platform.OS === 'ios' ? -4 : -8,
5353
paddingHorizontal: 4,
54+
...(Platform.OS === 'android' && { transform: 'scale(2)' }),
5455
},
5556
});

0 commit comments

Comments
 (0)