Skip to content

Commit

Permalink
Add back CSS class tags to challenge buttons (#101)
Browse files Browse the repository at this point in the history
* Add back CSS class tags to challenge buttons
  • Loading branch information
ColdHeat authored Jan 31, 2025
1 parent 4ecf9da commit 6e79bf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/challenges.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ <h3 x-text="category"></h3>
<div class="col-sm-6 col-md-4 col-lg-3 my-3">
<button
class="challenge-button btn btn-dark w-100 h-100"
:class="c.solved_by_me ? 'challenge-solved' : ''"
:class="[
c.solved_by_me ? 'challenge-solved' : '',
...c.tags.map((tag) => `tag-${tag.value.replace(/ /g, '-')}`),
];"
:value="c.id" @click="loadChallenge(c.id)"
>

Expand Down

0 comments on commit 6e79bf3

Please sign in to comment.