mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
correct status bar width, display configurator version in status bar
This commit is contained in:
parent
fa2888f463
commit
3381463bf5
3 changed files with 13 additions and 1 deletions
9
main.css
9
main.css
|
@ -261,7 +261,7 @@ input[type="number"]::-webkit-inner-spin-button {
|
||||||
|
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
|
|
||||||
width: 100%;
|
width: calc(100% - 20px);
|
||||||
height: 20px;
|
height: 20px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
|
||||||
|
@ -278,6 +278,13 @@ input[type="number"]::-webkit-inner-spin-button {
|
||||||
|
|
||||||
border-right: 1px solid #7d7d79;
|
border-right: 1px solid #7d7d79;
|
||||||
}
|
}
|
||||||
|
#status-bar .version {
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
#cache {
|
#cache {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,9 @@
|
||||||
<div>
|
<div>
|
||||||
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="version">
|
||||||
|
<!-- configuration version generated here -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="cache">
|
<div id="cache">
|
||||||
<div class="data-loading">
|
<div class="data-loading">
|
||||||
|
|
2
main.js
2
main.js
|
@ -17,6 +17,8 @@ $(document).ready(function () {
|
||||||
'Chrome: <strong>' + window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/, "$1") + '</strong>, ' +
|
'Chrome: <strong>' + window.navigator.appVersion.replace(/.*Chrome\/([0-9.]*).*/, "$1") + '</strong>, ' +
|
||||||
'Configurator: <strong>' + chrome.runtime.getManifest().version + '</strong>');
|
'Configurator: <strong>' + chrome.runtime.getManifest().version + '</strong>');
|
||||||
|
|
||||||
|
$('#status-bar .version').text(chrome.runtime.getManifest().version);
|
||||||
|
|
||||||
// notification messages for various operating systems
|
// notification messages for various operating systems
|
||||||
switch (GUI.operating_system) {
|
switch (GUI.operating_system) {
|
||||||
case 'Windows':
|
case 'Windows':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue