From c8c6dd84c24a12dbee566c51e0b8f9b4b09ca009 Mon Sep 17 00:00:00 2001 From: Filip Barl Date: Wed, 8 Feb 2017 18:25:05 +0100 Subject: [PATCH] Fixed the node stack display bug. --- client/app/scripts/charts/node-shape-stack.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/charts/node-shape-stack.js b/client/app/scripts/charts/node-shape-stack.js index 638db478a..268ab1c04 100644 --- a/client/app/scripts/charts/node-shape-stack.js +++ b/client/app/scripts/charts/node-shape-stack.js @@ -1,9 +1,12 @@ import React from 'react'; + +import { NODE_BASE_SIZE } from '../constants/styles'; import { isContrastMode } from '../utils/contrast-utils'; export default function NodeShapeStack(props) { - const dy = isContrastMode() ? 0.15 : 0.1; - const highlightScale = [1, 1 + dy]; + const shift = isContrastMode() ? 0.15 : 0.1; + const highlightScale = [1, 1 + shift]; + const dy = NODE_BASE_SIZE * shift; const Shape = props.shape; return (