Skip to content

Commit 53b18b6

Browse files
committed
Fix styling board and gyro align
1 parent e322ef0 commit 53b18b6

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

src/css/tabs/configuration.css

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,18 @@
219219
border-bottom: 1px solid #ddd;
220220
width: 33.3%;
221221
float: left;
222+
white-space: nowrap;
223+
}
224+
225+
.tab-configuration .board_align_inputs input {
226+
width: 3.5em;
227+
}
228+
229+
.tab-configuration .board_align_inputs label,
230+
.tab-configuration .gyro_alignment_inputs label {
231+
display: block;
232+
overflow: hidden;
233+
text-overflow: ellipsis;
222234
}
223235

224236
.tab-configuration .selectProtocol
@@ -374,37 +386,35 @@
374386
}
375387

376388
.tab-configuration .alignicon {
377-
width: 20px;
378-
height: 20px;
389+
width: 15px;
390+
height: 15px;
379391
float: left;
380-
margin-left: -5px;
392+
margin-left: -1px;
381393
margin-right: 3px;
382394
}
383395

384396
.tab-configuration .pitch {
385397
background-image: url(../../images/icons/cf_icon_pitch.svg);
386398
background-repeat: no-repeat;
387-
background-size: 20px;
388399
background-position: center;
389400
}
390401

391402
.tab-configuration .yaw {
392403
background-image: url(../../images/icons/cf_icon_yaw.svg);
393404
background-repeat: no-repeat;
394-
background-size: 20px;
395405
background-position: center;
396406
}
397407

398408
.tab-configuration .roll {
399409
background-image: url(../../images/icons/cf_icon_roll.svg);
400410
background-repeat: no-repeat;
401-
background-size: 20px;
402411
background-position: center;
403412
}
404413

405414
.tab-configuration .board select {
406415
float: left;
407416
width: fit-content;
417+
max-width: 50%;
408418
height: 20px;
409419
margin-right: 5px;
410420
border: 1px solid silver;

src/tabs/configuration.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,29 +274,29 @@
274274
<div class="gyro_align_content">
275275
<div class="gyro_alignment_inputs">
276276
<label>
277-
<span i18n="configurationSensorGyroToUse"></span>
278277
<select class="gyro_to_use">
279278
<option i18n="configurationSensorGyroToUseDefaultOption" value="0"></option>
280279
<!-- list generated here -->
281280
</select>
281+
<span i18n="configurationSensorGyroToUse"></span>
282282
</label>
283283
</div>
284284
<div class="gyro_alignment_inputs">
285285
<label>
286-
<span i18n="configurationSensorAlignmentGyro1"></span>
287286
<select class="gyro_1_align">
288287
<option i18n="configurationSensorAlignmentDefaultOption" value="0"></option>
289288
<!-- list generated here -->
290289
</select>
290+
<span i18n="configurationSensorAlignmentGyro1"></span>
291291
</label>
292292
</div>
293293
<div class="gyro_alignment_inputs">
294-
<label>
295-
<span i18n="configurationSensorAlignmentGyro2"></span>
294+
<label>
296295
<select class="gyro_2_align">
297296
<option i18n="configurationSensorAlignmentDefaultOption" value="0"></option>
298297
<!-- list generated here -->
299298
</select>
299+
<span i18n="configurationSensorAlignmentGyro2"></span>
300300
</label>
301301
</div>
302302
</div>

0 commit comments

Comments
 (0)