@@ -51,7 +51,7 @@ export const Base = args => (
51
51
timestamp = { nextTimestamp ( ) }
52
52
messages = { [
53
53
{ id : "1" , key : "1" , type : "chat" , body : "Hello!" } ,
54
- { id : "2" , key : "2" , type : "chat" , body : "This is a really long message that should cause a new line." } ,
54
+ { id : "2" , key : "2" , type : "chat" , body : "This is a really long message that should cause a new line, so it needs to contain a lot of verbiage ." } ,
55
55
{ id : "3" , key : "3" , type : "image" , body : { src : imgSrc } }
56
56
] }
57
57
/>
@@ -61,7 +61,7 @@ export const Base = args => (
61
61
timestamp = { nextTimestamp ( ) }
62
62
messages = { [
63
63
{ id : "4" , key : "4" , type : "chat" , body : "Hello!" } ,
64
- { id : "5" , key : "5" , type : "chat" , body : "This is a really long message that should cause a new line." } ,
64
+ { id : "5" , key : "5" , type : "chat" , body : "This is a really long message that should cause a new line, so it needs to contain a lot of verbiage ." } ,
65
65
{ id : "6" , key : "6" , type : "video" , body : { src : videoSrc } } ,
66
66
{ id : "7" , key : "7" , type : "chat" , body : "Another message" } ,
67
67
{ id : "8" , key : "8" , type : "chat" , body : "One last message" }
@@ -89,7 +89,13 @@ export const Base = args => (
89
89
key : "11" ,
90
90
type : "chat" ,
91
91
body : ":thumbsup:"
92
- }
92
+ } ,
93
+ {
94
+ id : "10" ,
95
+ key : "10" ,
96
+ type : "chat" ,
97
+ body : "Really long test message with url, to test line breaking. https://demo.hubsfoundation.org Woo!"
98
+ } ,
93
99
] }
94
100
/>
95
101
< SystemMessage type = "join" presence = "room" name = "Liv" timestamp = { nextTimestamp ( ) } />
@@ -110,7 +116,12 @@ export const Base = args => (
110
116
timestamp = { nextTimestamp ( ) }
111
117
messages = { [
112
118
{ id : "14" , key : "14" , type : "chat" , body : "https://hubsfoundation.org" } ,
113
- { id : "15" , key : "15" , type : "chat" , body : "Test message with url. https://hubsfoundation.org" }
119
+ {
120
+ id : "21" ,
121
+ key : "21" ,
122
+ type : "chat" ,
123
+ body : "Another really long test message with url. https://hubsfoundation.org So where does the line break?"
124
+ }
114
125
] }
115
126
/>
116
127
< PermissionMessageGroup
0 commit comments