diff --git a/app/js/directives/directive-area-chart.js b/app/js/directives/directive-area-chart.js
index d2c3a43f..556c5e3d 100755
--- a/app/js/directives/directive-area-chart.js
+++ b/app/js/directives/directive-area-chart.js
@@ -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,
diff --git a/app/js/directives/directive-component-select.js b/app/js/directives/directive-component-select.js
index 8cd5d4ec..886ebe71 100755
--- a/app/js/directives/directive-component-select.js
+++ b/app/js/directives/directive-component-select.js
@@ -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('
-
+
{{f.title}}
diff --git a/app/views/page-outfit.html b/app/views/page-outfit.html
index 21e7b4fc..0fbe3802 100755
--- a/app/views/page-outfit.html
+++ b/app/views/page-outfit.html
@@ -60,9 +60,9 @@
8
-
Bulkheads
{{ship.bulkheads.c.class}}{{ship.bulkheads.c.rating}}
+
Bulkheads
+
{{ship.bulkheads.c.mass}} T
{{ship.bulkheads.c.name}}
-
{{ship.bulkheads.c.mass}} T
- Lightweight Alloy
@@ -75,80 +75,73 @@
{{::pp.maxClass}}
-
Power Plant
-
{{pp.id}}
+
{{pp.id}} Power Plant
+
{{pp.c.mass}} T
Eff: {{pp.c.eff}}
Power: {{pp.c.pGen}} MW
-
{{pp.c.mass}} T
{{::th.maxClass}}
-
Thrusters
-
{{th.id}}
+
{{th.id}} Thrusters
+
{{th.c.mass}} T
Opt: {{th.c.optmass}} T
Max: {{th.c.maxmass}} T
-
{{th.c.mass}} T
{{::fsd.maxClass}}
-
Frame Shift Drive
-
{{fsd.id}}
+
{{fsd.id}} Frame Shift Drive
+
{{fsd.c.mass}} T
Opt: {{fsd.c.optmass}} T
Max Fuel: {{fsd.c.maxfuel}} T
-
{{fsd.c.mass}} T
{{::ls.maxClass}}
-
Life Support
-
{{ls.id}}
+
{{ls.id}} Life Support
+
{{ls.c.mass}} T
Time: {{fTime(ls.c.time)}}
-
{{ls.c.mass}} T
{{::pd.maxClass}}
-
Power Distributor
-
{{pd.id}}
+
{{pd.id}} Power Distributor
+
{{pd.c.mass}} T
Sys: {{pd.c.weaponcapacity}} Mj / {{pd.c.weaponrecharge}} MW
Wep: {{pd.c.systemcapacity}} Mj / {{pd.c.systemrecharge}} MW
Eng: {{pd.c.enginecapacity}} Mj / {{pd.c.enginerecharge}} MW
-
{{pd.c.mass}} T
{{::ss.maxClass}}
-
Sensors
-
{{ss.id}}
+
{{ss.id}} Sensors
+
{{ss.c.mass}} T
{{ss.c.range}} KM
-
{{ss.c.mass}} T
{{::ft.maxClass}}
-
Fuel Tank
-
{{ft.id}}
-
{{ft.c.capacity}} T
+
{{ft.id}} Fuel Tank
+
{{ft.c.capacity}} T
@@ -209,10 +202,10 @@
-
+
-
diff --git a/package.json b/package.json
index 552d5f70..5d79f48e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "coriolis_shipyard",
- "version": "0.7.0",
+ "version": "0.7.3",
"repository": {
"type": "git",
"url": "https://github.com/cmmcleod/coriolis"