1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 06:45:12 +03:00

Fix wrapping

This commit is contained in:
IvoFPV 2019-08-24 18:19:51 +02:00
parent 61d0b1e857
commit 34ca57fec2
2 changed files with 15 additions and 15 deletions

View file

@ -799,7 +799,7 @@
} }
.tab-pid_tuning .subtab-pid .cf_column { .tab-pid_tuning .subtab-pid .cf_column {
min-width: 500px; min-width: 470px;
flex: 1; flex: 1;
} }
@ -814,3 +814,17 @@
.tab-pid_tuning table.filterTable td:first-child { .tab-pid_tuning table.filterTable td:first-child {
width: 25%; width: 25%;
} }
@media only screen and (max-width: 1205px) {
.tab-pid_tuning .subtab-pid .spacer_left {
width: 100%;
}
}
@media only screen and (max-width: 1405px) {
.tab-pid_tuning .subtab-rates .ratePreview.spacer_left {
width: 100%;
}
}

View file

@ -1429,20 +1429,6 @@ TABS.pid_tuning.initialize = function (callback) {
}); });
} }
$(window).resize(function() {
let width = $(this).width();
if (width <= 1265) {
$('.pidControllerAdvancedSettings').removeClass('spacer_left');
} else if (width >= 1283) {
$('.pidControllerAdvancedSettings').addClass('spacer_left');
}
if (width <= 1405) {
$('.ratePreview').removeClass('spacer_left');
} else if (width >= 1423) {
$('.ratePreview').addClass('spacer_left');
}
});
// update == save. // update == save.
$('a.update').click(function () { $('a.update').click(function () {
form_to_pid_and_rc(); form_to_pid_and_rc();