Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Improve availability information on small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
flenny committed May 10, 2023
1 parent 27d4298 commit 18ff396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2 class="mb-3 display-6">🏸 Kursangebot
<p class="lead d-inline d-sm-none">
<span class="small"><b>Legende Verfügbarkeit:</b></span><br>
<span class="badge bg-success text-bg-success">freie Plätze</span>
<span class="badge bg-warning text-bg-warning">wenige Plätze</span>
<span class="badge bg-warning text-bg-warning">&lt; 5 Plätze</span>
<span class="badge bg-danger text-bg-danger">Warteliste</span>
</p>

Expand Down
2 changes: 1 addition & 1 deletion src/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
const [id, , , , , , , , , , participantLimit, bookings, availableSeats] = event
let [badgeState, badgeText] = ['success', 'freie Plätze']
if (availableSeats <= 0) [badgeState, badgeText] = ['danger', 'Warteliste']
else if (availableSeats <= 5) [badgeState, badgeText] = ['warning', 'wenige Plätze']
else if (availableSeats < 5) [badgeState, badgeText] = ['warning', 'wenige Plätze']
return `
<br class="d-none d-md-block">
<p>
Expand Down

0 comments on commit 18ff396

Please sign in to comment.