@@ -1063,31 +1063,34 @@ const TaskSolutionComponent: FC<ISolutionProps> = (props) => {
10631063 </ Grid >
10641064 </ Stack >
10651065 </ Grid >
1066- < Grid item spacing = { 8 } >
1067- { solution . comment &&
1068- < Grid item style = { { marginBottom : - 10 } } spacing = { 4 } >
1069- { showOriginalCommentText
1070- ? < Typography
1071- style = { { marginBottom : 15 , whiteSpace : 'break-spaces' } } > { solution . comment } </ Typography >
1072- : < MarkdownPreview value = { solution . comment } /> }
1073- </ Grid >
1074- }
1075- { props . isProcessing ? (
1076- < div style = { { display : 'flex' , alignItems : 'center' , color : '#1976d2' , fontWeight : '500' } } >
1077- < CircularProgress size = "20px" />
1078- Обрабатываем файлы...
1079- </ div >
1080- ) : filesInfo . length > 0 && (
1081- < div >
1082- < FilesPreviewList
1083- showOkStatus = { ! props . forMentor }
1084- filesInfo = { filesInfo }
1085- onClickFileInfo = { async ( fileInfo : IFileInfo ) => {
1086- const url = await ApiSingleton . customFilesApi . getDownloadFileLink ( fileInfo . id ! )
1087- window . open ( url , '_blank' ) ;
1088- } }
1089- />
1090- </ div >
1066+ < Grid item spacing = { 8 } >
1067+ { solution . comment &&
1068+ < Grid item style = { { marginBottom : - 10 } } spacing = { 4 } >
1069+ { showOriginalCommentText
1070+ ? < Typography
1071+ style = { {
1072+ marginBottom : 15 ,
1073+ whiteSpace : 'break-spaces'
1074+ } } > { solution . comment } </ Typography >
1075+ : < MarkdownPreview value = { solution . comment } /> }
1076+ </ Grid >
1077+ }
1078+ { filesInfo . length > 0 && (
1079+ < div >
1080+ { props . isProcessing && < div
1081+ style = { { display : 'flex' , alignItems : 'center' , color : '#1976d2' , fontWeight : '500' } } >
1082+ < CircularProgress size = "20px" />
1083+ Обрабатываем файлы...
1084+ </ div > }
1085+ < FilesPreviewList
1086+ showOkStatus = { ! props . forMentor }
1087+ filesInfo = { filesInfo }
1088+ onClickFileInfo = { async ( fileInfo : IFileInfo ) => {
1089+ const url = await ApiSingleton . customFilesApi . getDownloadFileLink ( fileInfo . id ! )
1090+ window . open ( url , '_blank' ) ;
1091+ } }
1092+ />
1093+ </ div >
10911094 ) }
10921095 </ Grid >
10931096 </ Grid >
0 commit comments