Skip to content

Commit

Permalink
Fix receiver tooltip (#3648)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Nov 29, 2023
1 parent 5fc5f51 commit faac1d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
3 changes: 0 additions & 3 deletions src/css/tabs/receiver.less
Expand Up @@ -658,9 +658,6 @@
&:nth-child(2) {
width: 20px;
}
div {
width: 27px;
}
}
.gui_box {
float: left;
Expand Down
5 changes: 4 additions & 1 deletion src/js/Features.js
Expand Up @@ -140,7 +140,10 @@ Features.prototype.generateElements = function (featuresElements) {
element += `type="checkbox"/></td><td><div>${newFeatureName}</div>`;
element += `<span class="xs" i18n="feature${featureName}"></span></td>`;
element += `<td><span class="sm-min" i18n="feature${featureName}"></span>`;
element += `${feature_tip_html}</td></tr>`;
if (feature.haveTip) {
element += feature_tip_html;
}
element += '</td></tr>';

const newElement = $(element);

Expand Down
12 changes: 2 additions & 10 deletions src/js/tabs/receiver.js
Expand Up @@ -409,19 +409,11 @@ receiver.initialize = function (callback) {
});

function checkShowSerialRxBox() {
if (FC.FEATURE_CONFIG.features.isEnabled('RX_SERIAL')) {
$('div.serialRXBox').show();
} else {
$('div.serialRXBox').hide();
}
$('div.serialRXBox').toggle(FC.FEATURE_CONFIG.features.isEnabled('RX_SERIAL'));
}

function checkShowSpiRxBox() {
if (FC.FEATURE_CONFIG.features.isEnabled('RX_SPI')) {
$('div.spiRxBox').show();
} else {
$('div.spiRxBox').hide();
}
$('div.spiRxBox').toggle(FC.FEATURE_CONFIG.features.isEnabled('RX_SPI'));
}

function checkShowElrsBindingPhrase() {
Expand Down
3 changes: 0 additions & 3 deletions src/tabs/receiver.html
Expand Up @@ -85,9 +85,6 @@
</table>
</div>
</div>
</div>

<div class="feature">
<div class="gui_box grey">
<div class="gui_box_titlebar">
<div class="spacer_box_title" i18n="configurationRSSI"></div>
Expand Down

0 comments on commit faac1d5

Please sign in to comment.