UI tweaking for tables, cleaner layout

This commit is contained in:
Colin McLeod
2015-05-25 22:49:59 -07:00
parent c74a5750b9
commit c75b13aaef
12 changed files with 67 additions and 55 deletions

View File

@@ -10,8 +10,9 @@ angular.module('app').directive('areaChart', function () {
width: '='
},
link: function(scope, element) {
var width = scope.width,
height = scope.height,
console.log(element[0].parentElement);
var width = element[0].parentElement.offsetWidth,
height = width * 0.6,
series = scope.series,
config = scope.config,
labels = config.labels,

View File

@@ -7,12 +7,13 @@ angular.module('app').directive('componentSelect', function () {
for (var i = 0; i < opts.length; i++) {
var o = opts[i];
var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating
list.push('<li class="', o.name? 'lc' : 'c');
if(wrap && o.class != prevClass) {
list.push(' cl');
if(i > 0 && opts.length > 3 && o.class != prevClass && (o.rating != prevRating || o.mode)) {
list.push('<br/>');
}
list.push('<li class="', o.name? 'lc' : 'c');
if (cid == o.id) {
list.push(' active');
}
@@ -25,13 +26,11 @@ angular.module('app').directive('componentSelect', function () {
list.push(o.class, o.rating);
if(o.mode) {
list.push('/' + o.mode);
if(o.missile) {
list.push(o.missile);
}
if(o.missile) {
list.push('/' + o.missile);
}
if(o.name) {
list.push(' ' + o.name);
}