Removed the throb animation for search matching.

This commit is contained in:
Filip Barl
2017-03-06 12:53:45 +01:00
parent a391ae8a3d
commit f87909282f
2 changed files with 3 additions and 23 deletions
+2 -10
View File
@@ -94,22 +94,14 @@ class Node extends React.Component {
render() {
const { focused, highlighted, networks, pseudo, rank, label, transform,
exportingGraph, showingNetworks, stack, id, metric, matches = makeMap() } = this.props;
exportingGraph, showingNetworks, stack, id, metric } = this.props;
const { hovered } = this.state;
const color = getNodeColor(rank, label, pseudo);
const truncate = !focused && !hovered;
const labelOffsetY = (showingNetworks && networks) ? 40 : 28;
const nodeClassName = classnames('node', {
// NOTE: Having a CSS animation here might not be the best idea.
// See https://github.com/weaveworks/scope/issues/2255
matched: !matches.isEmpty(),
highlighted,
hovered,
pseudo
});
const nodeClassName = classnames('node', { highlighted, hovered, pseudo });
const labelClassName = classnames('node-label', { truncate });
const labelMinorClassName = classnames('node-label-minor', { truncate });