mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-19 04:16:21 +00:00
Removed the throb animation for search matching.
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user