Truncate long voter names with ellipsis in admin list
This commit is contained in:
@@ -664,7 +664,9 @@ function renderAdminVoteStatus() {
|
||||
list.innerHTML = "";
|
||||
state.adminVoteStatus.voters.forEach((v) => {
|
||||
const li = document.createElement("li");
|
||||
li.textContent = `${v.name} — ${v.finalized ? "✅" : "⏳"}`;
|
||||
const name = v.name?.length > 24 ? `${v.name.slice(0, 21)}…` : v.name;
|
||||
li.textContent = `${name} — ${v.finalized ? "✅" : "⏳"}`;
|
||||
li.title = v.name;
|
||||
list.appendChild(li);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user