From 11bce8c17cf41fc4c6d7d50f71cb0a645887a0bd Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Fri, 13 Sep 2019 23:11:23 +0900 Subject: [PATCH] remove padding before label text for SUBFLOW UI row --- .../node_modules/@node-red/editor-client/src/js/ui/subflow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js index ed7cf134c..f7fa598fe 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js @@ -1381,7 +1381,8 @@ RED.subflow = (function() { } } if (ui.type !== "checkbox") { - $('').css({"padding-left":"5px"}).text(labelText).appendTo(label); + var css = ui.icon ? {"padding-left":"5px"} : {}; + $('').css(css).text(labelText).appendTo(label); if (ui.type === 'none') { label.width('100%'); }