mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 03:46:45 +00:00
Correct label position for nodes that don't have networks.
This commit is contained in:
@@ -104,7 +104,7 @@ class Node extends React.Component {
|
||||
const useSvgLabels = exportingGraph;
|
||||
const size = nodeScale(scaleFactor);
|
||||
const networkOffset = nodeScale(scaleFactor * 0.65);
|
||||
if (showingNetworks) {
|
||||
if (showingNetworks && networks) {
|
||||
labelOffsetY += (focused ? 12 : 8);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user