Skip to content

Commit

Permalink
Fix text wrapping in challenge score card
Browse files Browse the repository at this point in the history
The score and the unit should always be on the same line.
  • Loading branch information
veloek committed Feb 29, 2024
1 parent b7c5334 commit 3e04d41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tevling/Components/ChallengeCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
<li class="list-group-item d-flex justify-content-between">
<h6>@score.Name</h6>
<span>@score.Score</span>
<span class="score">@score.Score</span>
</li>
}

Expand Down
4 changes: 4 additions & 0 deletions Tevling/Components/ChallengeCard.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
text-wrap: nowrap;
text-overflow: ellipsis;
}

.score {
text-wrap: nowrap;
}

0 comments on commit 3e04d41

Please sign in to comment.