Skip to content

Commit ad15724

Browse files
authored
Merge pull request #2356 from haslinghuis/rearrange_motor_sensor
2 parents 3b26ca6 + 4d64cda commit ad15724

File tree

10 files changed

+1791
-1707
lines changed

10 files changed

+1791
-1707
lines changed

locales/en/messages.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,6 +2551,12 @@
25512551
"motorsEnableControl": {
25522552
"message": "<strong>I understand the risks</strong>, the propellers are removed - enable motor control and arming, and disable Runaway Takeoff Prevention."
25532553
},
2554+
"motorsDialogSettingsChanged": {
2555+
"message": "Configuration changes have been detected.<br /><br /><strong class=\"message-negative-italic\">Motor Test Mode is disabled until the settings have seen saved.</strong>"
2556+
},
2557+
"motorsDialogSettingsChangedOk": {
2558+
"message": "OK"
2559+
},
25542560

25552561
"motorOutputReorderDialogClose": {
25562562
"message": "Cancel"

src/css/tabs/configuration.css

Lines changed: 1 addition & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
.tab-configuration .ui-grid-col {
22
margin-bottom: 0;
33
}
4-
.tab-configuration .mixerPreview {
5-
max-width: 230px;
6-
background-color: #eeeeee;
7-
text-align: center;
8-
float: left;
9-
border-radius: 5px;
10-
margin-top: 5px;
11-
}
12-
.tab-configuration .mixerPreview img {
13-
width: 90%;
14-
height: 90%;
15-
padding: 5%;
16-
}
17-
.tab-configuration select.batterymetertype {
18-
margin-right: 5px;
19-
float: left;
20-
width: 150px;
21-
}
4+
225
.tab-configuration input,
236
.tab-configuration select {
247
border: 1px solid var(--subtleAccent);
@@ -70,13 +53,6 @@
7053
border-bottom: 1px solid var(--subtleAccent);
7154
}
7255

73-
.tab-configuration .mixerList {
74-
width: 100%;
75-
height: 20px;
76-
margin-top: 5px;
77-
font-weight: bold;
78-
}
79-
8056
.tab-configuration .featuresMultiple {
8157
border-collapse: collapse;
8258
margin-bottom: 5px;
@@ -146,45 +122,6 @@
146122
line-height: 20px;
147123
}
148124

149-
.tab-configuration .current .checkbox {
150-
margin-top: 0;
151-
float: left;
152-
}
153-
154-
.tab-configuration .current .checkbox div {
155-
float: left;
156-
width: 66px;
157-
}
158-
159-
.tab-configuration .current .checkbox div input {
160-
margin: 0;
161-
float: left;
162-
}
163-
164-
.tab-configuration .disarm .checkbox {
165-
margin-top: 2px;
166-
margin-right: 5px;
167-
}
168-
169-
.tab-configuration .disarm .checkboxPwm {
170-
margin-top: 2px;
171-
margin-right: 5px;
172-
}
173-
174-
.tab-configuration .disarm .checkbox div {
175-
margin-bottom: 0;
176-
margin-top: 0;
177-
}
178-
179-
.tab-configuration .disarm .checkbox div input {
180-
margin: 0;
181-
float: left;
182-
}
183-
184-
.tab-configuration .disarm .checkbox span {
185-
margin-left: 0;
186-
}
187-
188125
.tab-configuration .freelabel {
189126
margin-left: 10px;
190127
position: relative;
@@ -198,35 +135,12 @@
198135
margin: 0;
199136
}
200137

201-
.tab-configuration .disarm .checkbox {
202-
float: left;
203-
padding-left: 0;
204-
margin-top: -5px;
205-
padding-bottom: 5px;
206-
border-bottom: 1px solid var(--subtleAccent);
207-
width: 100%;
208-
}
209-
210138
.tab-configuration .spacer_box {
211139
padding-bottom: 10px;
212140
float: left;
213141
width: calc(100% - 20px);
214142
}
215143

216-
.tab-configuration .disarm {
217-
margin-bottom: 5px;
218-
float: left;
219-
border-bottom: 1px solid var(--subtleAccent);
220-
width: 100%;
221-
}
222-
223-
.tab-configuration .disarmdelay {
224-
margin-top: 5px;
225-
float: left;
226-
width: 100%;
227-
border-bottom: 1px solid var(--subtleAccent);
228-
}
229-
230144
.tab-configuration .number,
231145
.tab-configuration .select
232146
{
@@ -261,15 +175,6 @@
261175
text-overflow: ellipsis;
262176
}
263177

264-
.tab-configuration .selectProtocol {
265-
margin-bottom: 5px;
266-
clear: left;
267-
padding-bottom: 5px;
268-
border-bottom: 1px solid var(--subtleAccent);
269-
width: 100%;
270-
float: left;
271-
}
272-
273178
.tab-configuration .number:last-child,
274179
.tab-configuration .select:last-child {
275180
border-bottom: none;
@@ -306,10 +211,6 @@
306211
float: left;
307212
}
308213

309-
.tab-configuration .mixer .gui_box, .tab-configuration .motorstop .gui_box {
310-
float: left;
311-
}
312-
313214
.tab-configuration .board .gui_box, .tab-configuration .acc .gui_box {
314215
float: left;
315216
}
@@ -327,23 +228,6 @@
327228
width: 30px;
328229
}
329230

330-
.tab-configuration .voltage td:nth-child(2) {
331-
width: 30px;
332-
}
333-
334-
.tab-configuration .currentmetertype {
335-
float: left;
336-
width: 150px;
337-
}
338-
339-
.tab-configuration .vbatmonitoring {
340-
margin-top: 5px;
341-
}
342-
343-
.tab-configuration .currentMonitoring {
344-
margin-top: 5px;
345-
}
346-
347231
.tab-configuration .rssi td:nth-child(2) {
348232
width: 30px;
349233
}
@@ -438,12 +322,6 @@
438322
font-weight: bold;
439323
}
440324

441-
.tab-configuration ._3dSettings {
442-
margin-top: 10px;
443-
float: left;
444-
width: 100%;
445-
}
446-
447325
.tab-configuration ._smallAngle {
448326
margin-top: 10px;
449327
float: left;
@@ -461,9 +339,6 @@
461339
.tab-configuration .rssi .gui_box, .tab-configuration .system .gui_box {
462340
float: left;
463341
}
464-
.tab-configuration .mixer .gui_box, .tab-configuration .motorstop .gui_box {
465-
float: left;
466-
}
467342
.tab-configuration .board .gui_box, .tab-configuration .acc .gui_box {
468343
float: left;
469344
}
@@ -475,13 +350,6 @@
475350
}
476351
}
477352
@media all and (max-width: 575px) {
478-
.tab-configuration .mixerPreview {
479-
max-width: none;
480-
}
481-
.tab-configuration select.escprotocol {
482-
width: 100%;
483-
margin-right: 0;
484-
}
485353
.tab-configuration .rssi .gui_box, .tab-configuration .system .gui_box {
486354
min-height: auto;
487355
}
@@ -503,7 +371,4 @@
503371
select.features.rxMode, select.serialRX, .dshotbeacon > td > div.select > div, .dshotbeacon select.dshotBeeperBeaconTone {
504372
width: 100%;
505373
}
506-
.tab-configuration .mixer .gui_box, .tab-configuration .motorstop .gui_box {
507-
min-height: auto;
508-
}
509374
}

0 commit comments

Comments
 (0)