From 2937b25d6d10908595c18dd3d0ed67775d828b14 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 13 Feb 2019 14:36:36 +0000 Subject: [PATCH] Shift status text left if no shape specified --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 3fd4ea2e1..66e37ce28 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 @@ -3008,11 +3008,12 @@ RED.view = (function() { if (!showStatus || !d.status) { thisNode.selectAll(".node_status_group").style("display","none"); } else { - thisNode.selectAll(".node_status_group").style("display","inline").attr("transform","translate(3,"+(d.h+3)+")"); var fill = status_colours[d.status.fill]; // Only allow our colours for now if (d.status.shape == null && fill == null) { thisNode.selectAll(".node_status").style("display","none"); + thisNode.selectAll(".node_status_group").style("display","inline").attr("transform","translate(-14,"+(d.h+3)+")"); } else { + thisNode.selectAll(".node_status_group").style("display","inline").attr("transform","translate(3,"+(d.h+3)+")"); var style; if (d.status.shape == null || d.status.shape == "dot") { style = {