Tidy some formatting in OSD config tab

10.3.x-maintenance
Dan Nixon 2017-06-30 09:23:46 +01:00
parent 829b0b468a
commit b8a3e4c8c9
2 changed files with 26 additions and 26 deletions

View File

@ -422,30 +422,30 @@ button {
} }
.tab-osd .alarms label { .tab-osd .alarms label {
display: block; display: block;
width:100%; width:100%;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
margin-top:5px; margin-top:5px;
padding-bottom: 5px padding-bottom: 5px
} }
.tab-osd .alarms label:last-child { .tab-osd .alarms label:last-child {
border-bottom: none; border-bottom: none;
padding-bottom: 0px padding-bottom: 0px
} }
.tab-osd .alarms input { .tab-osd .alarms input {
width: 55px; width: 55px;
padding-left: 3px; padding-left: 3px;
height: 18px; height: 18px;
line-height: 20px; line-height: 20px;
text-align: left; text-align: left;
border: 1px solid silver; border: 1px solid silver;
border-radius: 3px; border-radius: 3px;
margin-right: 11px; margin-right: 11px;
font-size: 11px; font-size: 11px;
font-weight: normal; font-weight: normal;
} }
.timer-option { .timer-option {
float: none !important; float: none !important;

View File

@ -1065,17 +1065,17 @@ TABS.osd.initialize = function (callback) {
// ask for the OSD config data // ask for the OSD config data
MSP.promise(MSPCodes.MSP_OSD_CONFIG) MSP.promise(MSPCodes.MSP_OSD_CONFIG)
.then(function(info) { .then(function(info) {
OSD.chooseFields(); OSD.chooseFields();
OSD.msp.decode(info); OSD.msp.decode(info);
if (OSD.data.state.haveSomeOsd == 0) { if (OSD.data.state.haveSomeOsd == 0) {
$('.unsupported').fadeIn(); $('.unsupported').fadeIn();
return; return;
} }
$('.supported').fadeIn(); $('.supported').fadeIn();
// show Betaflight logo in preview // show Betaflight logo in preview
var $previewLogo = $('.preview-logo').empty(); var $previewLogo = $('.preview-logo').empty();
$previewLogo.append( $previewLogo.append(