diff --git a/client/app/scripts/charts/nodes-grid.js b/client/app/scripts/charts/nodes-grid.js index af81b37f6..7acc54586 100644 --- a/client/app/scripts/charts/nodes-grid.js +++ b/client/app/scripts/charts/nodes-grid.js @@ -1,5 +1,6 @@ /* eslint react/jsx-no-bind: "off", no-multi-comp: "off" */ import React from 'react'; +import styled from 'styled-components'; import { connect } from 'react-redux'; import { List as makeList, Map as makeMap } from 'immutable'; import capitalize from 'lodash/capitalize'; @@ -20,6 +21,15 @@ const IGNORED_COLUMNS = ['docker_container_ports', 'docker_container_id', 'docke 'docker_container_command', 'docker_container_networks']; +const Icon = styled.span` + border-radius: ${props => props.theme.borderRadius.soft}; + background-color: ${props => props.color}; + margin-top: 3px; + display: block; + height: 12px; + width: 12px; +`; + function topologyLabel(topologies, id) { const topology = findTopologyById(topologies, id); if (!topology) { @@ -74,23 +84,18 @@ function renderIdCell({ }) { const showSubLabel = Boolean(pseudo) && labelMinor; const title = showSubLabel ? `${label} (${labelMinor})` : label; - const iconStyle = { - width: 16, - flex: 'none', - color: getNodeColor(rank, label) - }; return (