1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 22:35:17 +03:00

Hide Esc Sensor for non digital protocols

Move to CSS

white space

Css Fixing
This commit is contained in:
Asizon 2020-02-24 10:12:04 +01:00
parent 140509eea3
commit 8171d44bf5
4 changed files with 15 additions and 2 deletions

View file

@ -58,6 +58,13 @@
font-weight: bold;
}
.tab-configuration .featuresMultiple {
border-spacing: 0px;
margin-bottom: 5px;
margin-top: -5px;
padding: 0px;
}
.tab-configuration dl.features dt {
float: left;
width: 10px;

View file

@ -78,7 +78,7 @@ var Features = function (config) {
if (semver.gte(CONFIG.apiVersion, "1.31.0")) {
features.push(
{bit: 25, group: 'rxMode', mode: 'select', name: 'RX_SPI'},
{bit: 27, group: 'esc', name: 'ESC_SENSOR'}
{bit: 27, group: 'escSensor', name: 'ESC_SENSOR'}
);
}

View file

@ -544,6 +544,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
$('div.unsyncedpwmfreq').toggle(!digitalProtocol);
$('div.digitalIdlePercent').toggle(digitalProtocol);
$('.escSensor').toggle(digitalProtocol);
$('div.checkboxDshotBidir').toggle(semver.gte(CONFIG.apiVersion, "1.42.0") && digitalProtocol);
$('div.motorPoles').toggle(semver.gte(CONFIG.apiVersion, "1.42.0"));

View file

@ -173,11 +173,16 @@
</label>
</div>
</div>
<table cellpadding="0" cellspacing="0" style="margin-bottom: 5px;">
<table class="featuresMultiple">
<tbody class="features esc">
<!-- table generated here -->
</tbody>
</table>
<table class="featuresMultiple">
<tbody class="features escSensor">
<!-- table generated here -->
</tbody>
</table>
<!-- -->
<div class="number checkboxDshotBidir">
<div style="float: left; height: 20px; margin-right: 14px; margin-left: 3px;">