Skip to content

Commit

Permalink
[Enhancement #60] Moved comment-value style to CSS file.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Oct 12, 2021
1 parent 693cebb commit 4784af5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/comment/CommentView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const CommentView = (props) => {
<span className="col-auto text-muted comment-timestamp">{timeAgo}</span>
</div>
<div className="row">
<span className="col comment-value" style={ { whiteSpace: "pre-line" } }>{props.commentValue}</span>
<span className="col comment-value">{props.commentValue}</span>
</div>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/wizard/VerticalWizardNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const VerticalWizardNav = ({ steps, onNavigate, currentStep }) => {
className={Question.getEmphasizedClass(step)}
>
{JsonLdUtils.getLocalized(step[JsonLdUtils.RDFS_LABEL], options.intl)}
{/*<QuestionCommentIcon question={step}/>*/}
</ListGroupItem>
))}
</ListGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/s-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ input:disabled {
font-weight: 900;
}

.comment-content .comment-value {
white-space: pre-line;
}

.comment-list-items {
padding-top: 20px;
}
Expand Down

0 comments on commit 4784af5

Please sign in to comment.