Truncate names in admin waiting-for text
This commit is contained in:
@@ -672,9 +672,12 @@ function renderAdminVoteStatus() {
|
||||
|
||||
const waiting = state.adminVoteStatus.waiting;
|
||||
const ready = waiting.length === 0;
|
||||
const waitingDisplay = waiting.map((name) =>
|
||||
name?.length > 24 ? `${name.slice(0, 21)}…` : name,
|
||||
);
|
||||
status.textContent = ready
|
||||
? t("admin.readyForResults")
|
||||
: t("admin.waitingForPlayers", { names: waiting.join(", ") });
|
||||
: t("admin.waitingForPlayers", { names: waitingDisplay.join(", ") });
|
||||
status.className = ready ? "badge" : "badge warning";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user