diff options
| author | David Skoland <davidskoland@gmail.com> | 2026-02-11 00:12:51 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2026-02-11 00:12:51 +0100 |
| commit | 5bb35a981e2f35df7fbf126faa8655ee3b3ca142 (patch) | |
| tree | 67dad7dd336dfcd2c617e26eba7b0cf14aed93f8 /webAO | |
| parent | c380112d5f29b68bfa301527405fdf372835900e (diff) | |
Clamp playerlist char icons to 60x60 pixels
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/dom/renderPlayerList.ts | 2 |
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}`; |
