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

Merge pull request #2285 from node-red-hitachi/fix-subflow-ui-label-padding

Remove padding for label for SUBFLOW UI row without icon
This commit is contained in:
Nick O'Leary 2019-09-16 15:21:05 +01:00 committed by GitHub
commit 64b2f881c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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%');
}