aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2024-08-31 15:21:16 +0200
committerstonedDiscord <Tukz@gmx.de>2024-08-31 15:21:16 +0200
commit3cd1b8ef0f65e16d98cc43ed4c0397e62a662ec5 (patch)
tree5e7df8a4767230e80a03246011da03bfa9c7e68f /webAO
parentbd6455c493504bdf752355aa36e36b0755fdc615 (diff)
give everything but the names a fixed size
Diffstat (limited to 'webAO')
-rw-r--r--webAO/packets/handlers/handlePR.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handlePR.ts b/webAO/packets/handlers/handlePR.ts
index cfb2d1e..fd53b1f 100644
--- a/webAO/packets/handlers/handlePR.ts
+++ b/webAO/packets/handlers/handlePR.ts
@@ -8,6 +8,7 @@ function addPlayer(playerID: number) {
playerRow.className = `area0`;
const imgCell = playerRow.insertCell(0);
+ imgCell.style.width = "64px";
const img = document.createElement('img');
imgCell.appendChild(img);
@@ -21,12 +22,14 @@ function addPlayer(playerID: number) {
oocNameCell.appendChild(name);
const kickCell = playerRow.insertCell(4);
+ kickCell.style.width = "64px";
const kick = <HTMLButtonElement>document.createElement("button");
kick.innerText = "Kick";
kick.onclick = () => { window.kickPlayer(playerID) }
kickCell.appendChild(kick);
const banCell = playerRow.insertCell(5);
+ banCell.style.width = "64px";
const ban = <HTMLButtonElement>document.createElement("button");
ban.innerText = "Ban";
ban.onclick = () => { window.banPlayer(playerID) }