mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
Adjust documentation button so that it doesn't move the sensor
indicators when connected. Use same color as other help panels.
This commit is contained in:
parent
20a82e7339
commit
e447739e74
3 changed files with 40 additions and 20 deletions
|
@ -211,10 +211,10 @@ function onConnect() {
|
|||
$('#tabs ul.mode-connected').show();
|
||||
|
||||
if ("CLFL" == CONFIG.flightControllerIdentifier){
|
||||
var helpButton = $('#button-help');
|
||||
helpButton.show();
|
||||
helpButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
||||
helpButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
||||
var documentationButton = $('#button-documentation');
|
||||
documentationButton.show();
|
||||
documentationButton.html("Documentation for "+CONFIG.flightControllerVersion);
|
||||
documentationButton.attr("href","https://github.com/cleanflight/cleanflight/tree/v{0}/docs".format(CONFIG.flightControllerVersion));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -227,7 +227,9 @@ function onClosed(result) {
|
|||
|
||||
$('#tabs ul.mode-connected').hide();
|
||||
$('#tabs ul.mode-disconnected').show();
|
||||
$('#button-help').hide();
|
||||
|
||||
var documentationButton = $('#button-documentation');
|
||||
documentationButton.hide();
|
||||
}
|
||||
|
||||
function read_serial(info) {
|
||||
|
|
22
main.css
22
main.css
|
@ -154,16 +154,28 @@ input[type="number"]::-webkit-inner-spin-button {
|
|||
#sensor-status .on {
|
||||
background-color: #b8cf02;
|
||||
}
|
||||
#button-help {
|
||||
|
||||
#header-wrapper {
|
||||
}
|
||||
#documentation-controls {
|
||||
float: right;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#button-documentation {
|
||||
float: left;
|
||||
|
||||
padding: 0 12px 0 12px;
|
||||
|
||||
height: 18px;
|
||||
line-height: 18px;
|
||||
background-color: yellow;
|
||||
|
||||
background-color: #ffcb18;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
border: solid 1px;
|
||||
padding: 0px 2px 0px 2px;
|
||||
margin: 0px 10px 0px 0px;
|
||||
border: solid 1px #c0c0c0;
|
||||
display: none;
|
||||
}
|
||||
#options {
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
<a id="options" href="#" i18n_title="options_title"></a>
|
||||
<a id="button-help" href="#" target="_blank"></a>
|
||||
<div class="header-wrapper">
|
||||
<div id="sensor-status">
|
||||
<ul>
|
||||
<li class="gyro" title="Gyroscope">Gyro</li>
|
||||
|
@ -114,6 +114,12 @@
|
|||
<li class="sonar" title="Sonar / Range finder">Sonar</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="documentation-controls">
|
||||
<ul>
|
||||
<li><a id="button-documentation" href="#" target="_blank"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear-both"></div>
|
||||
<div id="log">
|
||||
<div id="watermark">CleanFlight</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue