vbox sizing

This commit is contained in:
ntr
2019-05-21 16:31:41 +10:00
parent 2bb15b7714
commit 6751254a91
5 changed files with 169 additions and 354 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
const preact = require('preact');
const range = require('lodash/range');
const { ITEMS: { SPECS: SPEC_CONSTANT }, INFO } = require('./../constants');
const { INFO } = require('./../constants');
const { SPECS } = require('./../utils');
const { COLOUR_ICONS, convertItem } = require('../utils');
function Info(args) {
@@ -41,8 +42,8 @@ function Info(args) {
}
if (isSpec) {
const breaks = SPEC_CONSTANT[info].thresholds;
const colourReqs = SPEC_CONSTANT[info].colours || [];
const breaks = SPECS[info].thresholds;
const colourReqs = SPECS[info].colours || [];
const thresholdEl = colourReqs.map((c, i) => {
const numIcons = Math.max(...breaks);