diff options
| author | stonedDiscord <Tukz@gmx.de> | 2024-08-31 15:21:16 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2024-08-31 15:21:16 +0200 |
| commit | 3cd1b8ef0f65e16d98cc43ed4c0397e62a662ec5 (patch) | |
| tree | 5e7df8a4767230e80a03246011da03bfa9c7e68f | |
| parent | bd6455c493504bdf752355aa36e36b0755fdc615 (diff) | |
give everything but the names a fixed size
| -rw-r--r-- | webAO/packets/handlers/handlePR.ts | 3 |
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) } |
