Skip to content

Commit ed780c8

Browse files
committed
fix: padding around ranking descriptions without bonus points
1 parent 7292d45 commit ed780c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/home.njk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
</div>
8181
</div>
8282
<div class="card-body p-0">
83-
<p class="p-4 pb-0 mb-0"><b>{{ rankingType.description | striptags(true) | escape | nl2br }}</b></p>
8483
{% if bonusPointsAwarding.started and rankingBonusPoints[rankingType.type] %}
84+
<p class="p-4 pb-0 mb-0"><b>{{ rankingType.description | striptags(true) | escape | nl2br }}</b></p>
8585
<!-- bonus points awarded progress bar -->
8686
<div class="alert alert-primary m-4 p-4">
8787
<div class="progress mb-2 with-center-label" role="progressbar" aria-label="Bonus points awarded for {{ rankingType.name }}" aria-valuenow="{{ rankingBonusPoints[rankingType.type].awarded }}" aria-valuemin="0" aria-valuemax="{{ rankingBonusPoints[rankingType.type].total }}">
@@ -91,7 +91,10 @@
9191
<p class="mb-0 text-center"><b>Bonus points are being awarded!</b><br>{{ rankingBonusPoints[rankingType.type].perHour | thousands }} bonus points are awarded to #1 <i>every hour</i> during the final week of the season.</p>
9292
</div>
9393
{% elif bonusPointsAwarding.startTime and rankingBonusPoints[rankingType.type] %}
94+
<p class="p-4 pb-0 mb-0"><b>{{ rankingType.description | striptags(true) | escape | nl2br }}</b></p>
9495
<p class="p-4 pt-0 mb-0"><small>{{ rankingBonusPoints[rankingType.type].perHour | thousands }} bonus points will be awarded to #1 <i>every hour</i> during the <i>final week of the season {{ bonusPointsAwarding.startTime | timeFromNow }}</i>!</small></p>
96+
{% else %}
97+
<p class="p-4 mb-0"><b>{{ rankingType.description | striptags(true) | escape | nl2br }}</b></p>
9598
{% endif %}
9699
<table class="table coalition-colored mb-0">
97100
<tbody>

0 commit comments

Comments
 (0)