Skip to content

Commit ba420a8

Browse files
committed
fix: badge sizes
1 parent 1733848 commit ba420a8

File tree

1 file changed

+99
-90
lines changed

1 file changed

+99
-90
lines changed

package/src/components/MessageList/__tests__/__snapshots__/TypingIndicator.test.js.snap

Lines changed: 99 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -27,134 +27,143 @@ exports[`TypingIndicator should match typing indicator snapshot 1`] = `
2727
>
2828
<View
2929
style={
30-
[
31-
{
32-
"alignItems": "center",
33-
"flexDirection": "row",
34-
},
35-
{
36-
"width": 51.2,
37-
},
38-
]
30+
{
31+
"flexDirection": "row",
32+
}
3933
}
4034
>
4135
<View
4236
style={
4337
[
4438
{
45-
"position": "absolute",
39+
"alignItems": "center",
40+
"flexDirection": "row",
4641
},
4742
{
48-
"left": 0,
43+
"height": 32,
44+
"width": 51.2,
4945
},
5046
]
5147
}
5248
>
5349
<View
54-
testID="user-avatar"
50+
style={
51+
[
52+
{
53+
"position": "absolute",
54+
},
55+
{
56+
"left": 0,
57+
},
58+
]
59+
}
5560
>
5661
<View
57-
style={
58-
[
59-
{
60-
"alignItems": "center",
61-
"borderRadius": 9999,
62-
"justifyContent": "center",
63-
"overflow": "hidden",
64-
},
65-
{
66-
"height": 32,
67-
"width": 32,
68-
},
69-
{
70-
"backgroundColor": "#fcd579",
71-
},
72-
{
73-
"borderColor": "rgba(0, 0, 0, 0.1)",
74-
"borderWidth": 1,
75-
},
76-
undefined,
77-
]
78-
}
79-
testID="avatar-image"
62+
testID="user-avatar"
8063
>
81-
<Image
82-
onError={[Function]}
83-
source={
84-
{
85-
"uri": "https://i.imgur.com/LuuGvh0.png",
86-
}
87-
}
64+
<View
8865
style={
8966
[
90-
{},
67+
{
68+
"alignItems": "center",
69+
"borderRadius": 9999,
70+
"justifyContent": "center",
71+
"overflow": "hidden",
72+
},
9173
{
9274
"height": 32,
9375
"width": 32,
9476
},
77+
{
78+
"backgroundColor": "#fcd579",
79+
},
80+
{
81+
"borderColor": "rgba(0, 0, 0, 0.1)",
82+
"borderWidth": 1,
83+
},
84+
undefined,
9585
]
9686
}
97-
/>
87+
testID="avatar-image"
88+
>
89+
<Image
90+
onError={[Function]}
91+
source={
92+
{
93+
"uri": "https://i.imgur.com/LuuGvh0.png",
94+
}
95+
}
96+
style={
97+
[
98+
{},
99+
{
100+
"height": 32,
101+
"width": 32,
102+
},
103+
]
104+
}
105+
/>
106+
</View>
98107
</View>
99108
</View>
100-
</View>
101-
<View
102-
style={
103-
[
104-
{
105-
"position": "absolute",
106-
},
107-
{
108-
"left": 19.2,
109-
},
110-
]
111-
}
112-
>
113109
<View
114-
testID="user-avatar"
110+
style={
111+
[
112+
{
113+
"position": "absolute",
114+
},
115+
{
116+
"left": 19.2,
117+
},
118+
]
119+
}
115120
>
116121
<View
117-
style={
118-
[
119-
{
120-
"alignItems": "center",
121-
"borderRadius": 9999,
122-
"justifyContent": "center",
123-
"overflow": "hidden",
124-
},
125-
{
126-
"height": 32,
127-
"width": 32,
128-
},
129-
{
130-
"backgroundColor": "#8febbd",
131-
},
132-
{
133-
"borderColor": "rgba(0, 0, 0, 0.1)",
134-
"borderWidth": 1,
135-
},
136-
undefined,
137-
]
138-
}
139-
testID="avatar-image"
122+
testID="user-avatar"
140123
>
141-
<Image
142-
onError={[Function]}
143-
source={
144-
{
145-
"uri": "https://i.imgur.com/spueyAP.png",
146-
}
147-
}
124+
<View
148125
style={
149126
[
150-
{},
127+
{
128+
"alignItems": "center",
129+
"borderRadius": 9999,
130+
"justifyContent": "center",
131+
"overflow": "hidden",
132+
},
151133
{
152134
"height": 32,
153135
"width": 32,
154136
},
137+
{
138+
"backgroundColor": "#8febbd",
139+
},
140+
{
141+
"borderColor": "rgba(0, 0, 0, 0.1)",
142+
"borderWidth": 1,
143+
},
144+
undefined,
155145
]
156146
}
157-
/>
147+
testID="avatar-image"
148+
>
149+
<Image
150+
onError={[Function]}
151+
source={
152+
{
153+
"uri": "https://i.imgur.com/spueyAP.png",
154+
}
155+
}
156+
style={
157+
[
158+
{},
159+
{
160+
"height": 32,
161+
"width": 32,
162+
},
163+
]
164+
}
165+
/>
166+
</View>
158167
</View>
159168
</View>
160169
</View>

0 commit comments

Comments
 (0)