@@ -51,7 +51,8 @@ export const Base = args => (
5151 timestamp = { nextTimestamp ( ) }
5252 messages = { [
5353 { 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+ // prettier-ignore
55+ { 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." } ,
5556 { id : "3" , key : "3" , type : "image" , body : { src : imgSrc } }
5657 ] }
5758 />
@@ -61,7 +62,8 @@ export const Base = args => (
6162 timestamp = { nextTimestamp ( ) }
6263 messages = { [
6364 { 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." } ,
65+ // prettier-ignore
66+ { 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." } ,
6567 { id : "6" , key : "6" , type : "video" , body : { src : videoSrc } } ,
6668 { id : "7" , key : "7" , type : "chat" , body : "Another message" } ,
6769 { id : "8" , key : "8" , type : "chat" , body : "One last message" }
@@ -89,6 +91,12 @@ export const Base = args => (
8991 key : "11" ,
9092 type : "chat" ,
9193 body : ":thumbsup:"
94+ } ,
95+ {
96+ id : "10" ,
97+ key : "10" ,
98+ type : "chat" ,
99+ body : "Really long test message with url, to test line breaking. https://demo.hubsfoundation.org Woo!"
92100 }
93101 ] }
94102 />
@@ -110,7 +118,8 @@ export const Base = args => (
110118 timestamp = { nextTimestamp ( ) }
111119 messages = { [
112120 { 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" }
121+ // prettier-ignore
122+ { id : "21" , key : "21" , type : "chat" , body : "Another really long test message with url. https://hubsfoundation.org So where does the line break?" }
114123 ] }
115124 />
116125 < PermissionMessageGroup
0 commit comments