mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
moving majority of save buttons to bottom right corner, graph margin plish
This commit is contained in:
parent
7d41ff54a4
commit
e8c4a03dd5
13 changed files with 76 additions and 51 deletions
|
@ -40,12 +40,16 @@
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
.tab-auxiliary_configuration .buttons {
|
||||||
|
width: calc(100% - 20px);
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
}
|
||||||
.tab-auxiliary_configuration .update {
|
.tab-auxiliary_configuration .update {
|
||||||
display: block;
|
display: block;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
margin-top: 10px;
|
|
||||||
|
|
||||||
height: 28px;
|
height: 28px;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
|
|
||||||
|
|
|
@ -7,5 +7,7 @@
|
||||||
<th i18n="auxiliaryName"></th>
|
<th i18n="auxiliaryName"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#" i18n="auxiliaryButtonSave"></a>
|
<div class="buttons">
|
||||||
|
<a class="update" href="#" i18n="auxiliaryButtonSave"></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -309,20 +309,21 @@
|
||||||
|
|
||||||
margin-left: 100px;
|
margin-left: 100px;
|
||||||
}
|
}
|
||||||
.tab-initial_setup .buttons {
|
.tab-initial_setup .buttons {
|
||||||
width: calc(100% - 20px);
|
width: calc(100% - 20px);
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
}
|
}
|
||||||
.tab-initial_setup .update {
|
.tab-initial_setup .update {
|
||||||
display: block;
|
display: block;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
width: 80px;
|
|
||||||
height: 28px;
|
height: 28px;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
|
|
||||||
|
padding: 0 15px 0 15px;
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
|
|
|
@ -56,9 +56,9 @@
|
||||||
}
|
}
|
||||||
.tab-logging .buttons a {
|
.tab-logging .buttons a {
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
float: right;
|
||||||
|
|
||||||
margin-right: 10px;
|
margin-left: 10px;
|
||||||
|
|
||||||
height: 28px;
|
height: 28px;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
|
@ -76,7 +76,4 @@
|
||||||
}
|
}
|
||||||
.tab-logging .buttons .back {
|
.tab-logging .buttons .back {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
float: right;
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
|
@ -33,8 +33,8 @@
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<a href="#" class="log_file" i18n="loggingButtonLogFile"></a>
|
|
||||||
<a href="#" class="logging" i18n="loggingStart"></a>
|
|
||||||
<a href="#" class="back" i18n="loggingBack"></a>
|
<a href="#" class="back" i18n="loggingBack"></a>
|
||||||
|
<a href="#" class="logging" i18n="loggingStart"></a>
|
||||||
|
<a href="#" class="log_file" i18n="loggingButtonLogFile"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -73,6 +73,12 @@
|
||||||
float: right;
|
float: right;
|
||||||
width: calc(40% - 10px); /* - ( "virtual" margin) */
|
width: calc(40% - 10px); /* - ( "virtual" margin) */
|
||||||
}
|
}
|
||||||
|
.tab-pid_tuning .buttons {
|
||||||
|
width: calc(100% - 20px);
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
}
|
||||||
.tab-pid_tuning .update,
|
.tab-pid_tuning .update,
|
||||||
.tab-pid_tuning .refresh {
|
.tab-pid_tuning .refresh {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -76,11 +76,13 @@
|
||||||
<td><input type="number" name="tpa" step="0.01" min="0" max="2.55" /></td>
|
<td><input type="number" name="tpa" step="0.01" min="0" max="2.55" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#" i18n="pidTuningButtonSave"></a>
|
|
||||||
<a class="refresh" href="#" i18n="pidTuningButtonRefresh"></a>
|
|
||||||
<div class="clear-both"></div>
|
<div class="clear-both"></div>
|
||||||
<div class="profile">
|
<div class="profile">
|
||||||
<span class="head" i18n="pidTuningProfileHead"></span>
|
<span class="head" i18n="pidTuningProfileHead"></span>
|
||||||
<input type="number" name="profile" min="1" max="3" />
|
<input type="number" name="profile" min="1" max="3" />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="buttons">
|
||||||
|
<a class="update" href="#" i18n="pidTuningButtonSave"></a>
|
||||||
|
<a class="refresh" href="#" i18n="pidTuningButtonRefresh"></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -121,37 +121,9 @@
|
||||||
|
|
||||||
border: 1px solid silver;
|
border: 1px solid silver;
|
||||||
}
|
}
|
||||||
.tab-receiver .update,
|
|
||||||
.tab-receiver .refresh {
|
|
||||||
display: block;
|
|
||||||
float: right;
|
|
||||||
|
|
||||||
margin-top: 22px;
|
|
||||||
|
|
||||||
height: 28px;
|
|
||||||
line-height: 28px;
|
|
||||||
|
|
||||||
padding: 0 15px 0 15px;
|
|
||||||
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bold;
|
|
||||||
|
|
||||||
border: 1px solid silver;
|
|
||||||
background-color: #ececec;
|
|
||||||
}
|
|
||||||
.tab-receiver .refresh {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
.tab-receiver .update:hover,
|
|
||||||
.tab-receiver .refresh:hover {
|
|
||||||
background-color: #dedcdc;
|
|
||||||
}
|
|
||||||
.tab-receiver select[name="rx_refresh_rate"] {
|
.tab-receiver select[name="rx_refresh_rate"] {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
margin-top: 30px;
|
|
||||||
margin-right: 20px;
|
|
||||||
|
|
||||||
border: 1px solid silver;
|
border: 1px solid silver;
|
||||||
}
|
}
|
||||||
.tab-receiver #RX_plot {
|
.tab-receiver #RX_plot {
|
||||||
|
@ -194,6 +166,37 @@
|
||||||
.tab-receiver #RX_plot .line:nth-child(12) {
|
.tab-receiver #RX_plot .line:nth-child(12) {
|
||||||
stroke: #7a6614;
|
stroke: #7a6614;
|
||||||
}
|
}
|
||||||
|
.tab-receiver .buttons {
|
||||||
|
width: calc(100% - 20px);
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
}
|
||||||
|
.tab-receiver .update,
|
||||||
|
.tab-receiver .refresh {
|
||||||
|
display: block;
|
||||||
|
float: right;
|
||||||
|
|
||||||
|
margin-top: 22px;
|
||||||
|
|
||||||
|
height: 28px;
|
||||||
|
line-height: 28px;
|
||||||
|
|
||||||
|
padding: 0 15px 0 15px;
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
border: 1px solid silver;
|
||||||
|
background-color: #ececec;
|
||||||
|
}
|
||||||
|
.tab-receiver .refresh {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.tab-receiver .update:hover,
|
||||||
|
.tab-receiver .refresh:hover {
|
||||||
|
background-color: #dedcdc;
|
||||||
|
}
|
||||||
|
|
||||||
/* SVG classes*/
|
/* SVG classes*/
|
||||||
.tab-receiver .grid .tick {
|
.tab-receiver .grid .tick {
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
<td><input type="number" name="expo" step="0.01" min="0" max="1" /></td>
|
<td><input type="number" name="expo" step="0.01" min="0" max="1" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<a class="update" href="#" i18n="receiverButtonSave"></a>
|
|
||||||
<a class="refresh" href="#" i18n="receiverButtonRefresh"></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="curves">
|
<div class="curves">
|
||||||
<div class="throttle_curve">
|
<div class="throttle_curve">
|
||||||
|
@ -53,4 +51,8 @@
|
||||||
<g class="axis x" transform="translate(40, 180)"></g>
|
<g class="axis x" transform="translate(40, 180)"></g>
|
||||||
<g class="axis y" transform="translate(40, 10)"></g>
|
<g class="axis y" transform="translate(40, 10)"></g>
|
||||||
</svg>
|
</svg>
|
||||||
|
<div class="buttons">
|
||||||
|
<a class="update" href="#" i18n="receiverButtonSave"></a>
|
||||||
|
<a class="refresh" href="#" i18n="receiverButtonRefresh"></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -178,7 +178,7 @@ function tab_initialize_receiver() {
|
||||||
var svg = d3.select("svg");
|
var svg = d3.select("svg");
|
||||||
|
|
||||||
var RX_plot_e = $('#RX_plot');
|
var RX_plot_e = $('#RX_plot');
|
||||||
var margin = {top: 20, right: 20, bottom: 10, left: 40};
|
var margin = {top: 20, right: 0, bottom: 10, left: 40};
|
||||||
var width, height, widthScale, heightScale;
|
var width, height, widthScale, heightScale;
|
||||||
function update_receiver_plot_size() {
|
function update_receiver_plot_size() {
|
||||||
width = RX_plot_e.width() - margin.left - margin.right;
|
width = RX_plot_e.width() - margin.left - margin.right;
|
||||||
|
|
|
@ -40,7 +40,7 @@ function tab_initialize_sensors() {
|
||||||
return sampleNumber + 1;
|
return sampleNumber + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
var margin = {top: 20, right: 20, bottom: 10, left: 40};
|
var margin = {top: 20, right: 10, bottom: 10, left: 40};
|
||||||
function updateGraphHelperSize(helpers) {
|
function updateGraphHelperSize(helpers) {
|
||||||
helpers.width = helpers.targetElement.width() - margin.left - margin.right;
|
helpers.width = helpers.targetElement.width() - margin.left - margin.right;
|
||||||
helpers.height = helpers.targetElement.height() - margin.top - margin.bottom;
|
helpers.height = helpers.targetElement.height() - margin.top - margin.bottom;
|
||||||
|
|
|
@ -106,6 +106,12 @@
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 0 0 5px;
|
margin: 0 0 0 5px;
|
||||||
}
|
}
|
||||||
|
.tab-servos .buttons {
|
||||||
|
width: calc(100% - 20px);
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
}
|
||||||
.tab-servos .update {
|
.tab-servos .update {
|
||||||
display: block;
|
display: block;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
<div class="live">
|
<div class="live">
|
||||||
<span i18n="servosLiveMode"></span> <input type="checkbox" />
|
<span i18n="servosLiveMode"></span> <input type="checkbox" />
|
||||||
</div>
|
</div>
|
||||||
<a class="update" href="#" i18n="servosButtonSave"></a>
|
<div class="buttons">
|
||||||
|
<a class="update" href="#" i18n="servosButtonSave"></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Add table
Add a link
Reference in a new issue