Anpassung Notification Dot, 1 Platz frei (Text

This commit is contained in:
Simona Oswald 2026-04-30 12:21:11 +02:00
parent b421a23adc
commit bcd55c1e22
2 changed files with 4 additions and 3 deletions

View File

@ -689,9 +689,9 @@ label {
right: -2px;
width: 12px;
height: 12px;
background-color: var(--error);
background-color: var(--blue);
border-radius: 50%;
border: 2px solid var(--butter-light);
border: 1.5px solid var(--butter-light);
z-index: 10;
}

View File

@ -514,7 +514,8 @@
if (isCanceled) {
sideInfoMarkup = '<span class="button-plaetze">Event abgesagt</span>';
} else if (!isRegistrationClosed) {
sideInfoMarkup = `<span class="button-plaetze${isFull ? ' event-spots-full' : ''}">${isFull ? 'Ausgebucht' : `${freePlaces} Plätze frei`}</span>`;
const spotLabel = freePlaces === 1 ? 'Platz frei' : 'Plätze frei';
sideInfoMarkup = `<span class="button-plaetze${isFull ? ' event-spots-full' : ''}">${isFull ? 'Ausgebucht' : `${freePlaces} ${spotLabel}`}</span>`;
}
card.innerHTML = `