From 5bb35a981e2f35df7fbf126faa8655ee3b3ca142 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 11 Feb 2026 00:12:51 +0100 Subject: Clamp playerlist char icons to 60x60 pixels Co-Authored-By: Claude Opus 4.6 --- webAO/dom/renderPlayerList.ts | 2 ++ 1 file changed, 2 insertions(+) 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}`; -- cgit