Skip to content

Commit 99beb11

Browse files
authored
fix: message status icon height and width issue (#3406)
1 parent f1c7561 commit 99beb11

4 files changed

Lines changed: 20 additions & 24 deletions

File tree

package/src/components/Message/MessageSimple/MessageStatus.tsx

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,35 +68,33 @@ const MessageStatusWithContext = (props: MessageStatusPropsWithContext) => {
6868
<View style={[styles.container, container]}>
6969
{read ? (
7070
<CheckAll
71-
height={20}
71+
height={16}
7272
stroke={semantics.accentPrimary}
73-
width={20}
73+
width={16}
7474
accessibilityLabel='Read'
7575
{...checkAllIcon}
7676
/>
7777
) : delivered ? (
7878
<CheckAll
7979
stroke={semantics.chatTextTimestamp}
80-
height={20}
81-
width={20}
80+
height={16}
81+
width={16}
8282
accessibilityLabel='Delivered'
8383
{...checkAllIcon}
8484
/>
8585
) : sending ? (
86-
<View style={styles.sendingContainer}>
87-
<Time
88-
stroke={semantics.chatTextTimestamp}
89-
height={12}
90-
width={12}
91-
accessibilityLabel='Sending'
92-
{...timeIcon}
93-
/>
94-
</View>
86+
<Time
87+
stroke={semantics.chatTextTimestamp}
88+
height={16}
89+
width={16}
90+
accessibilityLabel='Sending'
91+
{...timeIcon}
92+
/>
9593
) : sent ? (
9694
<Check
9795
stroke={semantics.chatTextTimestamp}
98-
height={20}
99-
width={20}
96+
height={16}
97+
width={16}
10098
accessibilityLabel='Sent'
10199
{...checkIcon}
102100
/>
@@ -209,9 +207,7 @@ const useStyles = () => {
209207
container: {
210208
alignItems: 'center',
211209
flexDirection: 'row',
212-
},
213-
sendingContainer: {
214-
paddingRight: primitives.spacingXxs,
210+
gap: primitives.spacingXxs,
215211
},
216212
});
217213
}, [semantics]);

package/src/icons/Check.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import Svg, { Path } from 'react-native-svg';
55
import { IconProps } from './utils/base';
66

77
export const Check = ({ height, width, ...rest }: IconProps) => (
8-
<Svg viewBox='0 0 20 20' fill='none' height={height} width={width}>
8+
<Svg viewBox='0 0 16 16' fill='none' height={height} width={width}>
99
<Path
10-
d='M6.45833 10.8856L9.11458 13.5418L13.5417 6.4585'
10+
d='M3.75 9.0625L6.9375 12.25L12.25 3.75'
1111
strokeWidth={1.5}
1212
strokeLinecap='round'
1313
strokeLinejoin='round'

package/src/icons/CheckAll.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import Svg, { Path } from 'react-native-svg';
55
import { IconProps } from './utils/base';
66

77
export const CheckAll = ({ height, width, ...rest }: IconProps) => (
8-
<Svg viewBox='0 0 20 20' fill='none' height={height} width={width}>
8+
<Svg viewBox='0 0 16 16' fill='none' height={height} width={width}>
99
<Path
10-
d='M4.79167 10.8856L7.44792 13.5418L11.875 6.4585M10.7813 13.5418L15.2083 6.4585'
10+
d='M1.75 9.0625L4.9375 12.25L10.25 3.75M8.9375 12.25L14.25 3.75'
1111
strokeWidth={1.5}
1212
strokeLinecap='round'
1313
strokeLinejoin='round'

package/src/icons/Time.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import Svg, { Path } from 'react-native-svg';
55
import { IconProps } from './utils/base';
66

77
export const Time = ({ height, width, ...rest }: IconProps) => (
8-
<Svg viewBox='0 0 12 12' fill='none' height={height} width={width}>
8+
<Svg viewBox='0 0 16 16' fill='none' height={height} width={width}>
99
<Path
10-
d='M6 3.875V6L7.375 7.375M10.625 6C10.625 8.5543 8.5543 10.625 6 10.625C3.44568 10.625 1.375 8.5543 1.375 6C1.375 3.44568 3.44568 1.375 6 1.375C8.5543 1.375 10.625 3.44568 10.625 6Z'
10+
d='M8.00001 5.16659V7.99992L9.83334 9.83325M14.1667 7.99992C14.1667 11.4057 11.4057 14.1666 8.00001 14.1666C4.59426 14.1666 1.83334 11.4057 1.83334 7.99992C1.83334 4.59417 4.59426 1.83325 8.00001 1.83325C11.4057 1.83325 14.1667 4.59417 14.1667 7.99992Z'
1111
strokeWidth={1.5}
1212
strokeLinecap='round'
1313
strokeLinejoin='round'

0 commit comments

Comments
 (0)