File tree 2 files changed +23
-1
lines changed
containers/ResponseDisplay
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,22 @@ $input-focus-box-shadow: $input-box-shadow; // hack to get upgrade to paragon 4.
48
48
right : 1rem !important ;
49
49
}
50
50
}
51
+
51
52
.confirm-modal .pgn__modal-body {
52
53
overflow : hidden ;
53
54
}
55
+
56
+ .pgn__modal-body-content {
57
+ & img {
58
+ object-fit : contain ;
59
+ max-width : 100% ;
60
+ height : auto ;
61
+ }
62
+
63
+ & blockquote > p {
64
+ border-left : 2px solid $gray-200 ;
65
+ margin-left : 1.5rem ;
66
+ padding-left : 1rem ;
67
+ }
68
+ }
54
69
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import parse from 'html-react-parser';
11
11
import { selectors } from 'data/redux' ;
12
12
import { fileUploadResponseOptions } from 'data/services/lms/constants' ;
13
13
14
+ import { getConfig } from '@edx/frontend-platform' ;
14
15
import SubmissionFiles from './SubmissionFiles' ;
15
16
import PreviewDisplay from './PreviewDisplay' ;
16
17
@@ -26,7 +27,13 @@ export class ResponseDisplay extends React.Component {
26
27
}
27
28
28
29
get textContents ( ) {
29
- return this . props . response . text . map ( text => parse ( this . purify . sanitize ( text ) ) ) ;
30
+ const { text } = this . props . response ;
31
+
32
+ const formattedText = text
33
+ . map ( ( item ) => item . replaceAll ( / \. \. \/ a s s e t / g, `${ getConfig ( ) . LMS_BASE_URL } /asset` ) )
34
+ . map ( ( item ) => parse ( this . purify . sanitize ( item ) ) ) ;
35
+
36
+ return formattedText ;
30
37
}
31
38
32
39
get submittedFiles ( ) {
You can’t perform that action at this time.
0 commit comments