From 5d5a112c2bedda962181ee3175c633f9e844055a Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 22 Nov 2019 20:51:06 +0000 Subject: [PATCH] Move node state icons to left edge --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index e63bb952d..c227fe856 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -3006,7 +3006,7 @@ RED.view = (function() { .attr("class","red-ui-flow-node-status-label") .attr("x",20).attr("y",10); - node.append("g").attr("class","red-ui-flow-node-changed hide").attr("transform","translate(20, -2)").append("circle").attr("r",5); + node.append("g").attr("class","red-ui-flow-node-changed hide").attr("transform","translate(20, -2)").append("circle").attr("r",4); var nodeErrorButton = node.append("g").attr("class","red-ui-flow-node-error hide").attr("transform","translate(0, -2)").append("path").attr("d","M -5,4 l 10,0 -5,-8 z"); nodeErrorButton.on("mouseenter", function() { if (d.validationErrors && d.validationErrors.length > 0) { @@ -3221,11 +3221,11 @@ RED.view = (function() { if (vertical) { thisNode.selectAll(".red-ui-flow-node-changed") - .attr("transform",function(d){return "translate("+(0)+", -2)"}) + .attr("transform",function(d){return "translate(0, 4)"}) .classed("hide",function(d) { return !(d.changed||d.moved); }); thisNode.selectAll(".red-ui-flow-node-error") - .attr("transform",function(d){ return "translate("+((d.changed||d.moved)?12:0)+", -2)"}) + .attr("transform",function(d){ return "translate( 0,"+((d.changed||d.moved)?16:4)+")"}) .classed("hide",function(d) { return d.valid; }); } else { thisNode.selectAll(".red-ui-flow-node-changed")