Skip to content

Commit 1960bd9

Browse files
authored
Style: Fix various small UI inconsistencies (#4616)
* Style Fix: Remove unnecessary padding from mobile tabs * Style Fix: Even padding on tabs * Style Fix: Unify mid content box color with the rest of the UI * Style Fix: Adjust PID/Rateprofile selection * Style Fix: Large overhaul of PID Tuning tab * Style Fix: Prevent width shifting when ARM prevention flags change * Style Fix: Unify presets dropdown with pid/rateprofile dropdown * Style Fix: Adjust motor settings layout and improve spacing * Style Fix: Use custom scrollbar not just for tabs * Style Fix: Correct parent element hiding for auto disarm delay input * Style Fix: Improve layout and spacing for help icons in configuration inputs * Style Fix: Update small button styles * Style Fix: Replace 'select' with 'number' for GPS configuration * Style Fix: Re-adjust spacing for motor/esc settings * Style Fix: Address SonarCloud * Fix: Re-name JS selectors to match updated classes * Fix: Forgot dots
1 parent 7bb76a6 commit 1960bd9

File tree

14 files changed

+132
-166
lines changed

14 files changed

+132
-166
lines changed

src/css/main.less

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ body {
2323
margin: 0;
2424
padding: 0;
2525
overflow: hidden;
26+
27+
::-webkit-scrollbar {
28+
width: 0.3rem;
29+
height: 2em;
30+
}
31+
::-webkit-scrollbar-thumb {
32+
background: var(--surface-600);
33+
}
2634
}
2735
&::backdrop {
2836
background-image: none;
@@ -197,9 +205,16 @@ input[type="number"] {
197205
padding-bottom: 0;
198206
margin-bottom: 0;
199207
}
200-
.helpicon,
201208
label {
202209
margin: 0 !important;
210+
display: flex;
211+
align-items: center;
212+
gap: 0.5rem;
213+
}
214+
.helpicon {
215+
margin-right: 7px !important;
216+
margin-left: auto !important;
217+
float: none;
203218
}
204219
}
205220
.clear-both {
@@ -664,16 +679,7 @@ input[type="number"] {
664679
width: 17rem;
665680
overflow: auto;
666681
padding: 1rem;
667-
padding-right: 0.5rem;
668682
background-color: var(--surface-100);
669-
670-
&::-webkit-scrollbar {
671-
width: 0.3rem;
672-
height: 2em;
673-
}
674-
&::-webkit-scrollbar-thumb {
675-
background: var(--surface-600);
676-
}
677683
}
678684

679685
#content {
@@ -963,6 +969,7 @@ dialog {
963969
background-color: var(--primary-transparent-2);
964970
border: 1px solid var(--primary-500);
965971
margin-bottom: 0.5rem;
972+
margin-top: 0.5rem;
966973
border-radius: 0.5rem;
967974
padding: 0.5rem;
968975
}
@@ -971,6 +978,7 @@ dialog {
971978
border: 1px solid var(--error-600);
972979
color: #fff;
973980
margin-bottom: 0.5rem;
981+
margin-top: 0.5rem;
974982
border-radius: 0.5rem;
975983
padding: 0.5rem;
976984
}
@@ -1274,6 +1282,7 @@ dialog {
12741282
.select {
12751283
display: flex;
12761284
gap: 1rem;
1285+
align-items: center;
12771286
}
12781287
}
12791288
.fixed_band {
@@ -1999,7 +2008,6 @@ each(range(12), {
19992008
font-size: 13px;
20002009
padding-top: 0.2rem;
20012010
padding-bottom: 0.25rem;
2002-
padding-left: 2.5rem;
20032011
}
20042012
#side_menu_swipe {
20052013
display: block;

src/css/tabs/configuration.less

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@
8383
margin-bottom: 0.5rem;
8484
display: flex;
8585
gap: 0.25rem;
86-
8786
.btn {
88-
padding: 0.15rem 0.5rem;
87+
text-align: center;
88+
background-color: var(--primary-500);
89+
border-radius: 0.5rem;
90+
border: 1px solid var(--primary-600);
91+
color: #000;
92+
font-weight: 600;
8993
font-size: 10px;
90-
border: 1px solid var(--surface-400);
91-
background: var(--primary-300);
9294
cursor: pointer;
93-
border-radius: 999px;
9495
white-space: nowrap;
9596
height: 1.4rem;
9697
display: flex;
@@ -100,12 +101,15 @@
100101
background-color 200ms;
101102

102103
&:hover {
103-
background: var(--primary-500);
104-
border-color: var(--surface-500);
104+
background-color: var(--primary-400);
105+
color: #000;
106+
transition: all ease 0.2s;
107+
text-decoration: none;
105108
}
106-
107109
&:active {
108-
background: var(--surface-300);
110+
background-color: var(--primary-400);
111+
transition: all ease 0s;
112+
box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.35);
109113
}
110114
}
111115
}

src/css/tabs/landing.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
margin-bottom: 15px;
1818
}
1919
.content_mid {
20-
background-color: var(--surface-300);
20+
background-color: var(--surface-100);
2121
overflow: hidden;
2222
padding: 0 15px;
2323
margin-top: auto;

src/css/tabs/motors.less

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
flex-direction: column;
55
gap: 1rem;
66
}
7+
.motorstop {
8+
.spacer_box {
9+
gap: 0;
10+
}
11+
}
712
.configuration {
813
display: flex;
914
flex-direction: column;
@@ -44,6 +49,18 @@
4449
line-height: 18px;
4550
}
4651
}
52+
table.featuresMultiple {
53+
border-collapse: collapse;
54+
margin-bottom: 0.5rem;
55+
tbody {
56+
border-bottom: 1px solid var(--surface-500);
57+
tr {
58+
td {
59+
padding: 0 0 0.5rem 0;
60+
}
61+
}
62+
}
63+
}
4764
.number {
4865
input {
4966
width: 55px;
@@ -70,11 +87,6 @@
7087
span {
7188
margin-left: 0;
7289
}
73-
margin-bottom: 5px;
74-
clear: left;
75-
padding-bottom: 5px;
76-
border-bottom: 1px solid var(--surface-500);
77-
width: 100%;
7890
&:last-child {
7991
border-bottom: none;
8092
padding-bottom: 0;
@@ -127,9 +139,8 @@
127139
}
128140
}
129141
.selectProtocol {
130-
margin-bottom: 5px;
131-
clear: left;
132-
padding-bottom: 5px;
142+
padding: 0.5rem 0;
143+
margin-bottom: 0.5rem;
133144
border-bottom: 1px solid var(--surface-500);
134145
width: 100%;
135146
}
@@ -147,16 +158,6 @@
147158
.modelAndGraph {
148159
width: 100%;
149160
}
150-
.btn {
151-
.disabled {
152-
cursor: default;
153-
color: #fff;
154-
background-color: #afafaf;
155-
border: none;
156-
pointer-events: none;
157-
opacity: 0.5;
158-
}
159-
}
160161
#dialogMotorOutputReorder-closebtn {
161162
margin-right: 0px;
162163
margin-bottom: 0px;

0 commit comments

Comments
 (0)