Skip to content

Commit

Permalink
/rank: Fix colspan spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Nov 5, 2024
1 parent acd0d99 commit 878464a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions play.pokemonshowdown.com/js/client-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,9 @@
user: targets[0]
}, Storage.safeJSON(function (data) {
if (!data || !$.isArray(data)) return self.add('|raw|Error: corrupted ranking data');
var buffer = '<div class="ladder"><table><tr><td colspan="8">User: <strong>' + toName(targets[0]) + '</strong></td></tr>';
var buffer = '<div class="ladder"><table><tr><td colspan="9">User: <strong>' + toName(targets[0]) + '</strong></td></tr>';
if (!data.length) {
buffer += '<tr><td colspan="8"><em>This user has not played any ladder games yet.</em></td></tr>';
buffer += '<tr><td colspan="9"><em>This user has not played any ladder games yet.</em></td></tr>';
buffer += '</table></div>';
return self.add('|raw|' + buffer);
}
Expand Down

0 comments on commit 878464a

Please sign in to comment.