aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2026-02-11 00:12:51 +0100
committerDavid Skoland <davidskoland@gmail.com>2026-02-11 00:12:51 +0100
commit5bb35a981e2f35df7fbf126faa8655ee3b3ca142 (patch)
tree67dad7dd336dfcd2c617e26eba7b0cf14aed93f8
parentc380112d5f29b68bfa301527405fdf372835900e (diff)
Clamp playerlist char icons to 60x60 pixels
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
-rw-r--r--webAO/dom/renderPlayerList.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/dom/renderPlayerList.ts b/webAO/dom/renderPlayerList.ts
index a382194..48354ae 100644
--- a/webAO/dom/renderPlayerList.ts
+++ b/webAO/dom/renderPlayerList.ts
@@ -21,6 +21,8 @@ export function renderPlayerList() {
const imgCell = playerRow.insertCell(0);
imgCell.style.width = "64px";
const img = document.createElement("img");
+ img.style.maxWidth = "60px";
+ img.style.maxHeight = "60px";
if (player.charName) {
const iconExt = client.charicon_extensions[0] || ".png";
img.src = `${AO_HOST}characters/${encodeURI(player.charName.toLowerCase())}/char_icon${iconExt}`;