1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 09:15:42 +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:
Paweł Spychalski 2021-12-26 14:35:19 +01:00 committed by GitHub
commit 0bfd48ad60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -252,6 +252,10 @@
width: calc(100% - 10px);
}
.show.unusedPIDsHidden {
width: 130px;
}
.tab-pid_tuning .helpicon {
margin-top: -1px;
}

View file

@ -140,9 +140,11 @@ TABS.pid_tuning.initialize = function (callback) {
if($(this).text() == "Show all PIDs") {
$('.tab-pid_tuning table.pid_tuning').show();
$(this).text('Hide unused PIDs');
$('.show').addClass('unusedPIDsHidden');
} else {
hideUnusedPids(CONFIG.activeSensors);
$(this).text('Show all PIDs');
$('.show').removeClass('unusedPIDsHidden');
}
});