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:
commit
64b2f881c4
@ -1381,7 +1381,8 @@ RED.subflow = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ui.type !== "checkbox") {
|
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') {
|
if (ui.type === 'none') {
|
||||||
label.width('100%');
|
label.width('100%');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user