@@ -79,7 +79,8 @@ DashPreview {
79 fontSize: "medium"
79 fontSize: "medium"
80 opacity: 0.6
80 opacity: 0.6
81 color: "white"
81 color: "white"
82+ // TODO: should backend come back with <br /> already?
82− text: previewData.subtitle
83+ text: previewData.subtitle.replace(/[\r\n]+/g, "<br />")
83 style: Text.Raised
84 style: Text.Raised
84 styleColor: "black"
85 styleColor: "black"
85 wrapMode: Text.WordWrap
86 wrapMode: Text.WordWrap
@@ -94,7 +95,8 @@ DashPreview {
94 fontSize: "small"
95 fontSize: "small"
95 opacity: 0.6
96 opacity: 0.6
96 color: "white"
97 color: "white"
98+ // TODO: should backend come back with <br /> already?
97− text: previewData.description
99+ text: previewData.description.replace(/[\r\n]+/g, "<br />")
98 style: Text.Raised
100 style: Text.Raised
99 styleColor: "black"
101 styleColor: "black"
100 wrapMode: Text.WordWrap
102 wrapMode: Text.WordWrap