Skip to content

Commit 6b08c57

Browse files
committed
TaskSolutionComponent: корректное отображение в режиме без форматирования
1 parent 7e3cdc1 commit 6b08c57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hwproj.front/src/components/Solutions/TaskSolutionComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ const TaskSolutionComponent: FC<ISolutionProps> = (props) => {
498498
{solution.comment &&
499499
<Grid item style={{marginBottom: -16}}>
500500
{showOriginalCommentText
501-
? <Typography style={{marginBottom: 15}}>{solution.comment}</Typography>
501+
? <Typography style={{marginBottom: 15, whiteSpace: 'break-spaces'}}>{solution.comment}</Typography>
502502
: <MarkdownPreview value={solution.comment}/>}
503503
</Grid>
504504
}

0 commit comments

Comments
 (0)