New design for hover states and overflow handling

This commit is contained in:
Roland Schilter
2017-07-11 14:05:12 +02:00
parent 9dcdc65e66
commit 5a2593b5eb
8 changed files with 69 additions and 34 deletions

View File

@@ -52,7 +52,9 @@ export function getMetricValue(metric) {
export function getMetricColor(metric) {
const metricId = metric && metric.get('id');
const metricId = typeof metric === 'string'
? metric
: metric && metric.get('id');
if (/mem/.test(metricId)) {
return 'steelBlue';
} else if (/cpu/.test(metricId)) {