File tree 3 files changed +12
-3
lines changed
src/containers/ResponseDisplay
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 43
43
.preview-display {
44
44
padding : map-get ($spacers , 3 ) 0 ;
45
45
}
46
+
47
+ .response-display-text-content {
48
+ white-space : pre-line ;
49
+ overflow : hidden ;
50
+ }
46
51
}
47
52
48
53
@include media-breakpoint-down (sm) {
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ exports[`ResponseDisplay component snapshot file upload disable with valid respo
5
5
className = " response-display"
6
6
>
7
7
<Card >
8
- <Card.Body >
8
+ <Card.Body
9
+ className = " response-display-text-content"
10
+ >
9
11
parsed html (sanitized (some text response here))
10
12
</Card.Body >
11
13
</Card >
@@ -62,7 +64,9 @@ exports[`ResponseDisplay component snapshot file upload enable with valid respon
62
64
}
63
65
/>
64
66
<Card >
65
- <Card.Body >
67
+ <Card.Body
68
+ className = " response-display-text-content"
69
+ >
66
70
parsed html (sanitized (some text response here))
67
71
</Card.Body >
68
72
</Card >
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export class ResponseDisplay extends React.Component {
48
48
/* eslint-disable react/no-array-index-key */
49
49
this . textContents . map ( ( textContent , index ) => (
50
50
< Card key = { index } >
51
- < Card . Body > { textContent } </ Card . Body >
51
+ < Card . Body className = "response-display-text-content" > { textContent } </ Card . Body >
52
52
</ Card >
53
53
) )
54
54
}
You can’t perform that action at this time.
0 commit comments