Skip to content

Commit f36cdab

Browse files
authored
fix: list item row width (#3863)
1 parent 92c4037 commit f36cdab

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

src/components/List/ListItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,11 @@ const styles = StyleSheet.create({
262262
paddingRight: 24,
263263
},
264264
row: {
265+
width: '100%',
265266
flexDirection: 'row',
266267
},
267268
rowV3: {
269+
width: '100%',
268270
flexDirection: 'row',
269271
marginVertical: 6,
270272
},

src/components/__tests__/__snapshots__/ListAccordion.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ exports[`renders expanded accordion 1`] = `
183183
Object {
184184
"flexDirection": "row",
185185
"marginVertical": 6,
186+
"width": "100%",
186187
}
187188
}
188189
>

src/components/__tests__/__snapshots__/ListItem.test.tsx.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ exports[`renders list item with custom description 1`] = `
3737
Object {
3838
"flexDirection": "row",
3939
"marginVertical": 6,
40+
"width": "100%",
4041
}
4142
}
4243
>
@@ -335,6 +336,7 @@ exports[`renders list item with custom title and description styles 1`] = `
335336
Object {
336337
"flexDirection": "row",
337338
"marginVertical": 6,
339+
"width": "100%",
338340
}
339341
}
340342
>
@@ -460,6 +462,7 @@ exports[`renders list item with left and right items 1`] = `
460462
Object {
461463
"flexDirection": "row",
462464
"marginVertical": 6,
465+
"width": "100%",
463466
}
464467
}
465468
>
@@ -637,6 +640,7 @@ exports[`renders list item with left item 1`] = `
637640
Object {
638641
"flexDirection": "row",
639642
"marginVertical": 6,
643+
"width": "100%",
640644
}
641645
}
642646
>
@@ -780,6 +784,7 @@ exports[`renders list item with right item 1`] = `
780784
Object {
781785
"flexDirection": "row",
782786
"marginVertical": 6,
787+
"width": "100%",
783788
}
784789
}
785790
>
@@ -872,6 +877,7 @@ exports[`renders list item with title and description 1`] = `
872877
Object {
873878
"flexDirection": "row",
874879
"marginVertical": 6,
880+
"width": "100%",
875881
}
876882
}
877883
>
@@ -993,6 +999,7 @@ exports[`renders with a description with typeof number 1`] = `
993999
Object {
9941000
"flexDirection": "row",
9951001
"marginVertical": 6,
1002+
"width": "100%",
9961003
}
9971004
}
9981005
>

src/components/__tests__/__snapshots__/ListSection.test.tsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ exports[`renders list section with custom title style 1`] = `
252252
Object {
253253
"flexDirection": "row",
254254
"marginVertical": 6,
255+
"width": "100%",
255256
}
256257
}
257258
>
@@ -392,6 +393,7 @@ exports[`renders list section with custom title style 1`] = `
392393
Object {
393394
"flexDirection": "row",
394395
"marginVertical": 6,
396+
"width": "100%",
395397
}
396398
}
397399
>
@@ -749,6 +751,7 @@ exports[`renders list section with subheader 1`] = `
749751
Object {
750752
"flexDirection": "row",
751753
"marginVertical": 6,
754+
"width": "100%",
752755
}
753756
}
754757
>
@@ -889,6 +892,7 @@ exports[`renders list section with subheader 1`] = `
889892
Object {
890893
"flexDirection": "row",
891894
"marginVertical": 6,
895+
"width": "100%",
892896
}
893897
}
894898
>
@@ -1208,6 +1212,7 @@ exports[`renders list section without subheader 1`] = `
12081212
Object {
12091213
"flexDirection": "row",
12101214
"marginVertical": 6,
1215+
"width": "100%",
12111216
}
12121217
}
12131218
>
@@ -1348,6 +1353,7 @@ exports[`renders list section without subheader 1`] = `
13481353
Object {
13491354
"flexDirection": "row",
13501355
"marginVertical": 6,
1356+
"width": "100%",
13511357
}
13521358
}
13531359
>

0 commit comments

Comments
 (0)