Skip to content

Commit

Permalink
better challenge description
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIntaqt committed May 31, 2023
1 parent 0f330b8 commit 0fffec5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions src/css/user.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,24 @@ span.availableTitle img {
float: left;
}

.field>p {
.field>div {
float: left;
}

.field>div>p {
font-size: .9rem;
color: var(--light2);
padding: 0 10px;
line-height: 1.2;
line-height: 1.4;
text-align: justify;
}

.field .line {
width: 90%;
margin: 5px 5%;
height: 2px;
float: left;
background-color: var(--dark3);
}

@media only screen and (max-width: 1050px) {
Expand Down
2 changes: 1 addition & 1 deletion src/module/Challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class Challenge extends Component {
<h2>{t("Info")}</h2>
<span> {t("All you need to know about this challenge")} </span>
</div>
<p dangerouslySetInnerHTML={{ __html: challenge.text.replace(/\n/g, "<br />") }}></p>
<div dangerouslySetInnerHTML={{ __html: "<p>" + challenge.text.replace(/---\n/ig, "</p><div class='" + css.line + "'></div><p>").replace(/\n/g, "<br />") + "</p>" }}></div>
</div> : null
}

Expand Down

0 comments on commit 0fffec5

Please sign in to comment.