mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Improve alignment of node label edit inputs
This commit is contained in:
parent
09cd710f66
commit
c76bd39280
@ -865,7 +865,7 @@ RED.editor = (function() {
|
|||||||
var inputPlaceholder = node._def.inputLabels?RED._("editor.defaultLabel"):RED._("editor.noDefaultLabel");
|
var inputPlaceholder = node._def.inputLabels?RED._("editor.defaultLabel"):RED._("editor.noDefaultLabel");
|
||||||
var outputPlaceholder = node._def.outputLabels?RED._("editor.defaultLabel"):RED._("editor.noDefaultLabel");
|
var outputPlaceholder = node._def.outputLabels?RED._("editor.defaultLabel"):RED._("editor.noDefaultLabel");
|
||||||
|
|
||||||
$('<div class="form-row"><span style="margin-left: 10px;" data-i18n="editor.labelInputs"></span><div id="node-label-form-inputs"></div></div>').appendTo(dialogForm);
|
$('<div class="form-row"><span style="margin-left: 50px;" data-i18n="editor.labelInputs"></span><div id="node-label-form-inputs"></div></div>').appendTo(dialogForm);
|
||||||
var inputsDiv = $("#node-label-form-inputs");
|
var inputsDiv = $("#node-label-form-inputs");
|
||||||
if (inputCount > 0) {
|
if (inputCount > 0) {
|
||||||
for (i=0;i<inputCount;i++) {
|
for (i=0;i<inputCount;i++) {
|
||||||
@ -874,7 +874,7 @@ RED.editor = (function() {
|
|||||||
} else {
|
} else {
|
||||||
buildLabelRow().appendTo(inputsDiv);
|
buildLabelRow().appendTo(inputsDiv);
|
||||||
}
|
}
|
||||||
$('<div class="form-row"><span style="margin-left: 10px;" data-i18n="editor.labelOutputs"></span><div id="node-label-form-outputs"></div></div>').appendTo(dialogForm);
|
$('<div class="form-row"><span style="margin-left: 50px;" data-i18n="editor.labelOutputs"></span><div id="node-label-form-outputs"></div></div>').appendTo(dialogForm);
|
||||||
var outputsDiv = $("#node-label-form-outputs");
|
var outputsDiv = $("#node-label-form-outputs");
|
||||||
if (outputCount > 0) {
|
if (outputCount > 0) {
|
||||||
for (i=0;i<outputCount;i++) {
|
for (i=0;i<outputCount;i++) {
|
||||||
|
@ -343,7 +343,7 @@
|
|||||||
top: -3000px;
|
top: -3000px;
|
||||||
}
|
}
|
||||||
.node-label-form-row {
|
.node-label-form-row {
|
||||||
margin: 5px 0;
|
margin: 5px 0 0 50px;
|
||||||
label {
|
label {
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
Loading…
Reference in New Issue
Block a user