Skip to content

Commit a075ef5

Browse files
authored
fix ui issue (#1527)
1 parent 98ea377 commit a075ef5

File tree

10 files changed

+88
-545
lines changed

10 files changed

+88
-545
lines changed

src/components/contextmenu/style.scss

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,13 @@ body.no-animation {
2929
border: solid 1px transparent;
3030
border: solid 1px var(--popup-border-color);
3131

32-
@media (min-width: 769px) {
32+
@media (min-width: 1024px) {
3333
min-width: 260px;
3434
max-width: 400px;
3535
min-height: 48px;
36-
box-shadow: 0 0 8px var(--box-shadow-color);
3736
}
3837

39-
@media (min-width: 1024px) {
40-
min-width: 300px;
41-
max-width: 480px;
42-
min-height: 56px;
43-
box-shadow: 0 0 16px var(--box-shadow-color);
44-
}
45-
46-
& + .mask {
38+
&+.mask {
4739
z-index: 110;
4840
}
4941

@@ -110,8 +102,8 @@ body.no-animation {
110102
opacity: 0.5;
111103
}
112104

113-
@media (min-width: 769px) {
114-
height: 56px;
105+
@media (min-width: 1024px) {
106+
height: 55px;
115107
font-size: 1.05em;
116108

117109
&.notice::after {
@@ -128,29 +120,10 @@ body.no-animation {
128120
font-size: 1.1em;
129121
}
130122
}
131-
132-
@media (min-width: 1024px) {
133-
height: 64px;
134-
font-size: 1.1em;
135-
136-
&.notice::after {
137-
font-size: 1.4em;
138-
}
139-
140-
.text {
141-
.value {
142-
font-size: 0.9em;
143-
}
144-
}
145-
146-
.icon {
147-
font-size: 1.2em;
148-
}
149-
}
150123
}
151124

152125
&.hide {
153126
transition: all 100ms ease;
154127
opacity: 0;
155128
}
156-
}
129+
}

src/components/searchbar/style.scss

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
transform: translate(0, -100%, 0);
4646
}
4747

48-
@media (min-width: 769px) {
49-
height: 60px;
48+
@media (min-width: 1024px) {
49+
height: 50px;
5050

5151
input {
5252
margin: 8px;
@@ -56,26 +56,9 @@
5656
}
5757

5858
.icon {
59-
height: 60px;
60-
width: 60px;
61-
font-size: 1.4em;
62-
}
63-
}
64-
65-
@media (min-width: 1024px) {
66-
height: 70px;
67-
68-
input {
69-
margin: 10px;
70-
border-radius: 8px;
71-
font-size: 1.2em;
72-
padding: 0 16px;
73-
}
74-
75-
.icon {
76-
height: 70px;
77-
width: 70px;
78-
font-size: 1.6em;
59+
height: 50px;
60+
width: 50px;
61+
font-size: 1.3em;
7962
}
8063
}
81-
}
64+
}

src/components/sidebar/style.scss

Lines changed: 19 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body.no-animation {
44
}
55
}
66

7-
.page-replacement ~ #sidebar {
7+
.page-replacement~#sidebar {
88
opacity: 0;
99
}
1010

@@ -24,7 +24,7 @@ body.no-animation {
2424
overflow: hidden;
2525
box-sizing: border-box;
2626

27-
& + .mask {
27+
&+.mask {
2828
z-index: 108;
2929
}
3030

@@ -64,22 +64,12 @@ body.no-animation {
6464
flex-direction: column;
6565
position: relative;
6666

67-
@media (min-width: 769px) {
68-
width: 50px;
69-
min-width: 50px;
70-
padding: 12px 0;
71-
}
72-
73-
@media (min-width: 1024px) {
74-
width: 55px;
75-
min-width: 55px;
76-
padding: 15px 0;
77-
}
7867
.app-icons-container {
7968
flex: 1;
8069
overflow-y: auto;
8170
padding: 10px 0;
8271
}
72+
8373
.user-icon-container {
8474
position: sticky;
8575
bottom: 0;
@@ -88,6 +78,7 @@ body.no-animation {
8878
display: flex;
8979
justify-content: center;
9080
border-top: 1px solid var(--border-color);
81+
9182
.avatar {
9283
display: block;
9384
height: 35px;
@@ -96,6 +87,7 @@ body.no-animation {
9687
object-fit: cover;
9788
object-position: center;
9889
}
90+
9991
.icon {
10092
height: 40px;
10193
width: 40px;
@@ -110,20 +102,9 @@ body.no-animation {
110102
&.active {
111103
opacity: 1;
112104
}
113-
114-
@media (min-width: 769px) {
115-
height: 45px;
116-
width: 45px;
117-
font-size: 1.8em;
118-
}
119-
120-
@media (min-width: 1024px) {
121-
height: 50px;
122-
width: 50px;
123-
font-size: 2em;
124-
}
125105
}
126106
}
107+
127108
.icon {
128109
height: 35px;
129110
width: 35px;
@@ -137,18 +118,6 @@ body.no-animation {
137118
&.active {
138119
opacity: 1;
139120
}
140-
141-
@media (min-width: 769px) {
142-
height: 40px;
143-
width: 40px;
144-
font-size: 1.1em;
145-
}
146-
147-
@media (min-width: 1024px) {
148-
height: 45px;
149-
width: 45px;
150-
font-size: 1.2em;
151-
}
152121
}
153122
}
154123

@@ -164,7 +133,7 @@ body.no-animation {
164133
overflow-x: auto;
165134
}
166135

167-
> .list {
136+
>.list {
168137
width: 100%;
169138
max-width: 100%;
170139
max-height: 100%;
@@ -190,57 +159,35 @@ body.no-animation {
190159
font-size: 1em;
191160
}
192161
}
193-
194-
@media (min-width: 769px) {
195-
min-height: 38px;
196-
font-size: 1.05em;
197-
}
198-
199-
@media (min-width: 1024px) {
200-
min-height: 42px;
201-
font-size: 1.1em;
202-
}
203162
}
204163

205164
.icon {
206165
height: 30px;
207166
width: 30px;
208167
color: currentColor;
209168
font-size: 1em;
210-
211-
@media (min-width: 769px) {
212-
height: 32px;
213-
width: 32px;
214-
font-size: 1.1em;
215-
}
216-
217-
@media (min-width: 1024px) {
218-
height: 35px;
219-
width: 35px;
220-
font-size: 1.2em;
221-
}
222169
}
223170

224-
> ul {
171+
>ul {
225172
overflow: auto;
226173
width: 100%;
227174
max-width: 100%;
228175
max-height: calc(100% - 30px);
229176
height: calc(100% - 30px);
230177

231178
.tile:active {
232-
> *:nth-child(2) {
179+
>*:nth-child(2) {
233180
color: rgb(255, 215, 0);
234181
}
235182
}
236183

237184
li {
238-
> *:nth-child(2) {
185+
>*:nth-child(2) {
239186
color: currentColor;
240187
}
241188

242189
&.active {
243-
> *:nth-child(2) {
190+
>*:nth-child(2) {
244191
color: rgb(255, 215, 0);
245192
}
246193
}
@@ -307,16 +254,6 @@ body.no-animation {
307254
align-items: center;
308255
justify-content: center;
309256
font-weight: 600;
310-
311-
@media (min-width: 769px) {
312-
height: 40px;
313-
font-size: 1.1em;
314-
}
315-
316-
@media (min-width: 1024px) {
317-
height: 50px;
318-
font-size: 1.2em;
319-
}
320257
}
321258
}
322259
}
@@ -333,9 +270,11 @@ body.no-animation {
333270
display: none;
334271
z-index: 1000;
335272
overflow: hidden;
273+
336274
&.active {
337275
display: block;
338276
}
277+
339278
.user-menu-header {
340279
padding: 12px;
341280
border-bottom: 1px solid var(--border-color);
@@ -347,11 +286,9 @@ body.no-animation {
347286
.badge {
348287
display: inline-flex;
349288
align-items: center;
350-
background-color: color-mix(
351-
in srgb,
352-
var(--error-text-color) 20%,
353-
transparent
354-
);
289+
background-color: color-mix(in srgb,
290+
var(--error-text-color) 20%,
291+
transparent);
355292
color: var(--error-text-color);
356293
padding: 2px 6px;
357294
border-radius: 4px;
@@ -373,13 +310,15 @@ body.no-animation {
373310
display: flex;
374311
align-items: center;
375312
gap: 8px;
313+
376314
&:hover {
377315
background-color: var(--active-icon-color);
378316
}
379317
}
318+
380319
.user-menu-separator {
381320
height: 1px;
382321
background-color: var(--border-color);
383322
margin: 4px 0;
384323
}
385-
}
324+
}

0 commit comments

Comments
 (0)