mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
New design for hover states and overflow handling
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user