diff --git a/js/client-teambuilder.js b/js/client-teambuilder.js index e1a57fe50..9cb05af37 100644 --- a/js/client-teambuilder.js +++ b/js/client-teambuilder.js @@ -1083,8 +1083,11 @@ buf += '' + (typeof set.happiness === 'number' ? set.happiness : 255) + ''; buf += '' + (set.shiny ? 'Yes' : 'No') + ''; } + buf += ''; - buf += ''; + // item/type icons + buf += '
'; + buf += '
'; var itemicon = ''; if (set.item) { var item = Tools.getItem(set.item); @@ -1092,7 +1095,14 @@ } buf += itemicon; buf += '
'; - buf += '
'; + buf += '
'; + var types = Tools.getTemplate(set.species).types; + if (types) { + for (var i = 0; i < types.length; i++) buf += Tools.getTypeIcon(types[i]); + } + buf += '
'; + + buf += '
'; if (this.curTeam.gen > 1) buf += '
'; if (this.curTeam.gen > 2) buf += '
'; buf += '
'; diff --git a/style/client.css b/style/client.css index 084c90916..7c8b85467 100644 --- a/style/client.css +++ b/style/client.css @@ -2545,12 +2545,22 @@ a.ilink.yours { } .setcol-details .itemicon { display: block; - margin-top: 10px; width: 24px; height: 24px; background-image: transparent none no-repeat scroll center center; opacity: 0.8; } +.setrow-icons { + height: 24px; +} +.setcell-typeicons { + margin-top: 4px; + margin-right: 4px; + float: right; +} +.setcell-typeicons img { + margin-left: 1px; +} .setcell-sprite { height: 82px; padding: 1px; @@ -2559,7 +2569,7 @@ a.ilink.yours { margin-top: 0; } .setcell-details { - height: 84px; + height: 60px; } .setcol-moves .setcell { padding-bottom: 1px;