diff --git a/client/app/scripts/charts/node.js b/client/app/scripts/charts/node.js index 29e08e614..146c876fb 100644 --- a/client/app/scripts/charts/node.js +++ b/client/app/scripts/charts/node.js @@ -83,18 +83,18 @@ class Node extends React.Component { render() { const { blurred, focused, highlighted, label, matches = makeMap(), networks, - pseudo, rank, subLabel, scaleFactor, transform, zoomScale, exportingGraph, + pseudo, rank, subLabel, scaleFactor, transform, exportingGraph, showingNetworks, stack } = this.props; const { hovered, matched } = this.state; const nodeScale = focused ? this.props.selectedNodeScale : this.props.nodeScale; const color = getNodeColor(rank, label, pseudo); const truncate = !focused && !hovered; - const labelTransform = focused ? `scale(${1 / zoomScale})` : ''; const labelWidth = nodeScale(scaleFactor * 3); const labelOffsetX = -labelWidth / 2; const labelDy = (showingNetworks && networks) ? 0.75 : 0.60; - const labelOffsetY = focused ? nodeScale(labelDy) : nodeScale(labelDy * scaleFactor); + const labelOffsetY = nodeScale(labelDy * scaleFactor); + const networkOffset = nodeScale(scaleFactor * 0.67); const nodeClassName = classnames('node', { highlighted, @@ -111,7 +111,6 @@ class Node extends React.Component { const useSvgLabels = exportingGraph; const size = nodeScale(scaleFactor); const fontSize = labelFontSize(size); - const networkOffset = focused ? nodeScale(scaleFactor * 0.67) : nodeScale(0.67); const mouseEvents = { onClick: this.handleMouseClick, onMouseEnter: this.handleMouseEnter, @@ -126,9 +125,9 @@ class Node extends React.Component { svgLabels(label, subLabel, labelClassName, subLabelClassName, labelOffsetY) : + width={labelWidth} height="100em">
diff --git a/client/app/styles/main.less b/client/app/styles/main.less index 15c8fd8d0..2dfdd7448 100644 --- a/client/app/styles/main.less +++ b/client/app/styles/main.less @@ -546,7 +546,7 @@ h2 { text-align: center; &-match { - font-size: 0.8rem; + font-size: 0.8em; &-wrapper { display: inline-block; @@ -563,7 +563,7 @@ h2 { &-more { text-transform: uppercase; - font-size: 0.7rem; + font-size: 0.7em; color: darken(@weave-blue, 10%); margin-top: -2px; } @@ -1161,6 +1161,7 @@ h2 { } &-wrapper { + pointer-events: all; border-radius: @border-radius; border: 1px solid @background-darker-color; display: inline-block; @@ -1274,6 +1275,7 @@ h2 { font-size: .7rem; border-radius: 8px; border: 1px solid transparent; + pointer-events: none; } .sidebar-gridmode {