Skip to content

Commit 3f4da80

Browse files
fix: Prevent username text overflow in room invitation screen (#6972)
1 parent 047660f commit 3f4da80

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

app/containers/Chip/__snapshots__/Chip.test.tsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ exports[`Story Snapshots: ChipFullWidth should match snapshot 1`] = `
6969
style={
7070
[
7171
{
72+
"flexShrink": 1,
7273
"marginRight": 8,
7374
"maxWidth": 110,
7475
},
@@ -227,6 +228,7 @@ exports[`Story Snapshots: ChipText should match snapshot 1`] = `
227228
style={
228229
[
229230
{
231+
"flexShrink": 1,
230232
"marginRight": 8,
231233
"maxWidth": 110,
232234
},
@@ -409,6 +411,7 @@ exports[`Story Snapshots: ChipWithShortText should match snapshot 1`] = `
409411
style={
410412
[
411413
{
414+
"flexShrink": 1,
412415
"marginRight": 8,
413416
"maxWidth": 110,
414417
},
@@ -536,6 +539,7 @@ exports[`Story Snapshots: ChipWithoutAvatar should match snapshot 1`] = `
536539
style={
537540
[
538541
{
542+
"flexShrink": 1,
539543
"marginRight": 8,
540544
"maxWidth": 110,
541545
},
@@ -663,6 +667,7 @@ exports[`Story Snapshots: ChipWithoutAvatarAndIcon should match snapshot 1`] = `
663667
style={
664668
[
665669
{
670+
"flexShrink": 1,
666671
"marginRight": 8,
667672
"maxWidth": 110,
668673
},
@@ -819,6 +824,7 @@ exports[`Story Snapshots: ChipWithoutIcon should match snapshot 1`] = `
819824
style={
820825
[
821826
{
827+
"flexShrink": 1,
822828
"marginRight": 8,
823829
"maxWidth": 110,
824830
},

app/containers/Chip/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const styles = StyleSheet.create({
2323
marginVertical: 8
2424
},
2525
textContainer: {
26+
flexShrink: 1,
2627
marginRight: 8,
2728
maxWidth: 110
2829
},

0 commit comments

Comments
 (0)