diff --git a/src/css/tabs/motors.css b/src/css/tabs/motors.css index 11048ab49..3802d31c1 100644 --- a/src/css/tabs/motors.css +++ b/src/css/tabs/motors.css @@ -463,4 +463,18 @@ .tab-motors .config-section .number input { margin-right: 4px; -} \ No newline at end of file +} + +.tab-motors .mixerPreview { + position: relative; +} + +.tab-motors .motorNumber { + position: absolute; + font-size: 1.4em; + visibility: hidden; +} + +.tab-motors .mixer-preview-image-numbers { + width: fit-content; +} diff --git a/tabs/mixer.js b/tabs/mixer.js index be93c3026..e40fb07c6 100644 --- a/tabs/mixer.js +++ b/tabs/mixer.js @@ -476,6 +476,7 @@ TABS.mixer.initialize = function (callback, scrollPosition) { $("#motorNumber"+index).css("left", left_px + "px"); $("#motorNumber"+index).css("top", top_px + "px"); $("#motorNumber"+index).removeClass("is-hidden"); + $("#motorNumber"+index).css("visibility", "visible"); } } } @@ -544,7 +545,7 @@ TABS.mixer.initialize = function (callback, scrollPosition) { } } - labelMotorNumbers(); + labelMotorNumbers(); i18n.localize();; } @@ -610,7 +611,6 @@ TABS.mixer.initialize = function (callback, scrollPosition) { } } - return (errorCount == 0); } @@ -661,7 +661,6 @@ TABS.mixer.initialize = function (callback, scrollPosition) { const path = './resources/motor_order/' + currentMixerPreset.image + (isReversed ? "_reverse" : "") + '.svg'; $('.mixerPreview img').attr('src', path); - renderServoOutputImage(); }; diff --git a/tabs/outputs.html b/tabs/outputs.html index d57cc76d6..64a714762 100644 --- a/tabs/outputs.html +++ b/tabs/outputs.html @@ -117,7 +117,11 @@