mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Fix avatar chooser alignment
This commit is contained in:
@@ -589,8 +589,8 @@
|
||||
|
||||
buf += '<div class="avatarlist">';
|
||||
for (var i = 1; i <= 293; i++) {
|
||||
var offset = '-' + (((i - 1) % 16) * 80) + 'px -' + (Math.floor((i - 1) / 16) * 80) + 'px';
|
||||
buf += '<button name="setAvatar" value="' + i + '" style="background-position:' + offset + '"' + (i === cur ? ' class="cur"' : '') + '></button>';
|
||||
var offset = '-' + (((i - 1) % 16) * 80 + 1) + 'px -' + (Math.floor((i - 1) / 16) * 80 + 1) + 'px';
|
||||
buf += '<button name="setAvatar" value="' + i + '" style="background-position:' + offset + '"' + (i === cur ? ' class="cur"' : '') + ' title="/avatar ' + i + '"></button>';
|
||||
}
|
||||
buf += '</div><div style="clear:left"></div>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user