mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 01:35:23 +03:00
Merge pull request #1419 from iNavFlight/MrD-fix-alignment-of-hide-unsued-PID-button
Made the Hide Unused PIDs button fit the available space
This commit is contained in:
commit
0bfd48ad60
2 changed files with 6 additions and 0 deletions
|
@ -252,6 +252,10 @@
|
||||||
width: calc(100% - 10px);
|
width: calc(100% - 10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.show.unusedPIDsHidden {
|
||||||
|
width: 130px;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-pid_tuning .helpicon {
|
.tab-pid_tuning .helpicon {
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,9 +140,11 @@ TABS.pid_tuning.initialize = function (callback) {
|
||||||
if($(this).text() == "Show all PIDs") {
|
if($(this).text() == "Show all PIDs") {
|
||||||
$('.tab-pid_tuning table.pid_tuning').show();
|
$('.tab-pid_tuning table.pid_tuning').show();
|
||||||
$(this).text('Hide unused PIDs');
|
$(this).text('Hide unused PIDs');
|
||||||
|
$('.show').addClass('unusedPIDsHidden');
|
||||||
} else {
|
} else {
|
||||||
hideUnusedPids(CONFIG.activeSensors);
|
hideUnusedPids(CONFIG.activeSensors);
|
||||||
$(this).text('Show all PIDs');
|
$(this).text('Show all PIDs');
|
||||||
|
$('.show').removeClass('unusedPIDsHidden');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue