1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

remove padding before label text for SUBFLOW UI row

This commit is contained in:
Hiroyasu Nishiyama 2019-09-13 23:11:23 +09:00
parent 7c7be378bc
commit 11bce8c17c

View File

@ -1381,7 +1381,8 @@ RED.subflow = (function() {
}
}
if (ui.type !== "checkbox") {
$('<span>').css({"padding-left":"5px"}).text(labelText).appendTo(label);
var css = ui.icon ? {"padding-left":"5px"} : {};
$('<span>').css(css).text(labelText).appendTo(label);
if (ui.type === 'none') {
label.width('100%');
}