ensured .fa-ban next to empty seat changes to .fa-circle-check at the same time that .fa-chair glows & the pos circle fades out (i.e., when the gamer 'sits') not during or after the role card deposits itself in the tray; minor styling fixes for title h2, incl. text-shadow attr values when selected palette ends in *-light & opacity increases
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Disco DeDisco
2026-04-01 22:11:43 -04:00
parent 4860b6ee2a
commit 0e5e39b0dc
3 changed files with 12 additions and 8 deletions

View File

@@ -58,9 +58,13 @@ var RoleSelect = (function () {
stack.dataset.starterRoles = current ? current + "," + roleCode : roleCode;
}
// Mark seat as actively being claimed (glow state)
// Mark seat as actively being claimed (glow state) and swap ban → check immediately
var activePos = document.querySelector('.table-seat[data-role="' + roleCode + '"]');
if (activePos) activePos.classList.add('active');
if (activePos) {
activePos.classList.add('active');
var ban = activePos.querySelector('.fa-ban');
if (ban) { ban.classList.remove('fa-ban'); ban.classList.add('fa-circle-check'); }
}
// Immediately fade out the gate-slot circle for the current turn's slot
var activeSlot = stack ? stack.dataset.activeSlot : null;
@@ -104,8 +108,6 @@ var RoleSelect = (function () {
if (seatedPos) {
seatedPos.classList.remove('active');
seatedPos.classList.add('role-confirmed');
var ban = seatedPos.querySelector('.fa-ban');
if (ban) { ban.classList.remove('fa-ban'); ban.classList.add('fa-circle-check'); }
}
// Hold _animationPending through the post-tray pause so any
// turn_changed WS event that arrives now is still deferred.