UI Tweaks

This commit is contained in:
Colin McLeod
2015-07-06 15:45:56 -07:00
parent 904f828d83
commit a45d165d33
4 changed files with 11 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ angular.module('app').directive('componentSelect', function() {
var o = opts[i];
var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating
if (i > 0 && opts.length > 3 && o.class != prevClass && (!o.grp || o.rating != prevRating || o.mode)) {
if (i > 0 && opts.length > 4 && o.class != prevClass && (o.rating != prevRating || o.mode)) {
list.push('<br/>');
}
@@ -24,7 +24,7 @@ angular.module('app').directive('componentSelect', function() {
list.push('<svg cpid="', id, '" class="icon lg"><use cpid="', id, '" xlink:href="#mount-', o.mode, '"></use></svg> ');
}
list.push('<span>', o.class, o.rating);
list.push('<span cpid="', id, '">', o.class, o.rating);
if (o.missile) {
list.push('/' + o.missile);