Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnos3 committed Nov 27, 2021
1 parent 53a4206 commit d940f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nodes/blind-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -1723,13 +1723,13 @@
$oversteerCompare.val(data.operator || 'gte');

// row2 - Thersold
addLabel($row2, 'node-input-oversteer-compare', 'fa fa-cloud', node._('blind-control.label.oversteerThreshold'));
addLabel($row2, 'node-input-oversteer-compare', 'fa fa-cloud', node._('blind-control.label.oversteerThreshold'), '95px');

const $oversteerThreshold = $('<input/>', {
class: 'node-input-oversteer-threshold',
type: 'text'
})
.css('width', 'calc(100% - 160px)')
.css('width', 'calc(100% - 162px)')
.appendTo($row2)
.typedInput({
default: 'num',
Expand Down Expand Up @@ -1766,7 +1766,7 @@
class: 'node-input-oversteer-blindPos',
type: 'text'
})
.css('width', 'calc(100% - 145px)')
.css('width', 'calc(100% - 147px)')
.appendTo($row3)
.typedInput({
default: types.LevelFix,
Expand All @@ -1779,7 +1779,7 @@
class: 'node-input-oversteer-slatPos',
type: 'text'
})
.css('width', 'calc(100% - 145px)')
.css('width', 'calc(100% - 147px)')
.appendTo($row4)
.typedInput({
default: 'num',
Expand Down
2 changes: 1 addition & 1 deletion nodes/static/htmlglobal.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ function addLabel(parent, forEl, symb, text, width) { // eslint-disable-line no-
lbl.append(span);
// lbl.attr('style', 'margin-left: 5px; width:' + 20 + span.width() + 'px;');
width = width || 'auto';
lbl.attr('style', 'margin-left: 5px; margin-right: 5px; width:' + width + ';');
lbl.attr('style', 'margin-left: 5px; margin-right: 2px; width:' + width + ';');
} else {
width = width || '20px';
lbl.attr('style', 'margin-left: 5px; margin-right: 2px; width:' + width + ';');
Expand Down

0 comments on commit d940f7e

Please sign in to comment.