Skip to content

Commit 9c4013b

Browse files
committed
feat: 优化订阅列表紧凑样式并新增隐藏官网按钮设置
1 parent e59f1ca commit 9c4013b

13 files changed

Lines changed: 104 additions & 26 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store-front-end",
3-
"version": "2.21.0",
3+
"version": "2.22.0",
44
"private": true,
55
"scripts": {
66
"dev": "vite --host",

src/assets/styles/global.scss

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,28 +119,29 @@ img {
119119
border-radius: 8px;
120120
overflow: auto;
121121
padding-bottom: 24px;
122-
122+
123123
// PC/平板端响应式最大宽度限制
124124
@media screen and (min-width: 600px) {
125125
max-width: 500px;
126126
width: 500px;
127127
}
128-
128+
129129
@media screen and (min-width: 768px) {
130130
max-width: 600px;
131131
width: 600px;
132132
}
133-
133+
134134
@media screen and (min-width: 1024px) {
135135
max-width: 700px;
136136
width: 700px;
137137
}
138-
138+
139139
@media screen and (min-width: 1200px) {
140140
max-width: 800px;
141141
width: 800px;
142142
}
143143
}
144+
144145
.nut-button {
145146
margin-right: 10px;
146147
}
@@ -155,6 +156,7 @@ img {
155156
font-weight: bold;
156157
line-height: 2;
157158
}
159+
158160
// .nut-icon-order:before {
159161
// content: "\e697";
160162
// }
@@ -169,26 +171,33 @@ img {
169171
content: "\e688";
170172
cursor: pointer;
171173
}
174+
172175
.nut-icon-tips:before {
173176
content: "\e671";
174177
cursor: pointer;
175178
}
179+
176180
.nut-icon-category:before {
177181
font-size: 20px;
178182
content: "\e662";
179183
}
184+
180185
.nut-icon-issue:before {
181186
content: '\e6b1';
182187
}
188+
183189
.nut-icon-ask:before {
184190
content: '\e670';
185191
}
192+
186193
.nut-icon-setting:before {
187194
content: '\e681';
188195
}
196+
189197
.nut-icon-left:before {
190198
content: '\e6c9';
191199
}
200+
192201
.nut-icon-rect-left:before {
193202
content: '\e6c9';
194203
}
@@ -197,10 +206,12 @@ img {
197206
content: '\e6cb';
198207
color: #666;
199208
}
209+
200210
.nut-icon-rect-right:before {
201211
content: '\e6cb'; // \2003 占位符
202212
// color: var(--lowest-text-color); // 更多设置
203213
}
214+
204215
.nut-icon-rect-down:before {
205216
content: "\e6cc";
206217
}
@@ -212,33 +223,43 @@ img {
212223
.nut-icon-triangle-up:before {
213224
content: "\eb6e";
214225
}
226+
215227
.nut-icon-arrow-right2:before {
216228
content: '\e6a9';
217229
}
230+
218231
.nut-icon-arrow-right:before {
219232
content: '\e6a3';
220233
}
234+
221235
.nut-icon-link:before {
222236
content: '\e67c'; // link
223237
}
238+
224239
.nut-icon-refresh2:before {
225240
content: '\e682'; // sync
226241
}
242+
227243
.nut-icon-refresh:before {
228244
content: '\e690';
229245
}
246+
230247
.nut-icon-close-little:before {
231248
content: '\e6aa';
232249
}
250+
233251
.nut-icon-close:before {
234252
content: '\e674';
235253
}
254+
236255
.nut-icon-mask-close:before {
237256
content: '\e6cd';
238257
}
258+
239259
.nut-icon-circle-close:before {
240260
content: '\e699';
241261
}
262+
242263
.nut-icon-checked:before {
243264
content: '\e601';
244265
}
@@ -292,6 +313,7 @@ img {
292313
height: $icon-height;
293314
object-fit: contain;
294315
}
316+
295317
&-loading,
296318
&-loading1 {
297319
display: inline-block;
@@ -307,6 +329,7 @@ img {
307329
animation-iteration-count: infinite;
308330
animation-direction: alternate;
309331
}
332+
310333
&-am-jump {
311334
-webkit-animation-name: nutJumpOne;
312335
-webkit-animation-duration: var(--animate-duration);
@@ -340,6 +363,7 @@ img {
340363
animation-direction: normal;
341364
}
342365
}
366+
343367
&-am-blink {
344368
-webkit-animation-name: nutBlink;
345369
-webkit-animation-duration: var(--animate-duration);
@@ -351,6 +375,7 @@ img {
351375
animation-timing-function: linear;
352376
animation-delay: var(--animate-delay);
353377
}
378+
354379
&-am-breathe {
355380
-webkit-animation-name: nutBreathe;
356381
-webkit-animation-duration: var(--animate-duration);
@@ -362,6 +387,7 @@ img {
362387
animation-timing-function: ease-in-out;
363388
animation-delay: var(--animate-delay);
364389
}
390+
365391
&-am-flash {
366392
-webkit-animation-name: nutFlash;
367393
-webkit-animation-duration: var(--animate-duration);
@@ -373,6 +399,7 @@ img {
373399
animation-timing-function: ease-in-out;
374400
animation-delay: var(--animate-delay);
375401
}
402+
376403
&-am-bounce {
377404
-webkit-animation-name: nutBounce;
378405
-webkit-animation-duration: var(--animate-duration);

src/components/ArchiveListItem.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,15 @@ const nonSimpleSecondLine = computed(() => {
445445
display: flex;
446446
justify-content: space-between;
447447
align-items: center;
448-
gap: 8px;
448+
gap: 2px;
449449
}
450450
451451
.sub-item-title {
452452
flex: 1 1 auto;
453453
min-width: 0;
454454
display: flex;
455455
align-items: center;
456-
gap: 4px;
456+
gap: 3px;
457457
white-space: nowrap;
458458
overflow: hidden;
459459
color: var(--primary-text-color);
@@ -463,7 +463,13 @@ const nonSimpleSecondLine = computed(() => {
463463
.tag {
464464
display: inline-flex;
465465
flex: 0 0 auto;
466-
margin: 0 2px;
466+
margin: 0 1px;
467+
468+
:deep(.nut-tag) {
469+
padding: 2px 3px;
470+
font-size: 11px;
471+
line-height: 1.2;
472+
}
467473
}
468474
}
469475
@@ -484,7 +490,7 @@ const nonSimpleSecondLine = computed(() => {
484490
.refresh-sub-flow {
485491
background-color: transparent;
486492
border: none;
487-
padding: 0 8px;
493+
padding: 0 6px;
488494
cursor: pointer;
489495
display: inline-flex;
490496
justify-content: center;

src/components/ArtifactsListItem.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ watch(isSyncOpen, async () => {
667667
display: flex;
668668
justify-content: space-between;
669669
align-items: center;
670-
gap: 8px;
670+
gap: 2px;
671671
672672
.sub-item-title {
673673
display: -webkit-box;
@@ -680,9 +680,15 @@ watch(isSyncOpen, async () => {
680680
color: var(--primary-text-color);
681681
682682
.tag {
683-
margin-left: 4px;
684683
display: inline-flex;
684+
margin: 0 1px;
685685
vertical-align: middle;
686+
687+
:deep(.nut-tag) {
688+
padding: 2px 3px;
689+
font-size: 11px;
690+
line-height: 1.2;
691+
}
686692
}
687693
}
688694
@@ -821,7 +827,7 @@ watch(isSyncOpen, async () => {
821827
822828
.sub-item-detail {
823829
.second-line-wrapper {
824-
gap: 8px;
830+
gap: 2px;
825831
}
826832
827833
p {

src/components/FileListItem.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -687,14 +687,14 @@
687687
display: flex;
688688
justify-content: space-between;
689689
align-items: center;
690-
gap: 8px;
690+
gap: 2px;
691691
692692
.sub-item-title {
693693
flex: 1 1 auto;
694694
min-width: 0;
695695
display: flex;
696696
align-items: center;
697-
gap: 4px;
697+
gap: 3px;
698698
white-space: nowrap;
699699
overflow: hidden;
700700
font-size: 16px;
@@ -710,15 +710,21 @@
710710
.tag {
711711
display: inline-flex;
712712
flex: 0 0 auto;
713-
margin: 0 2px;
713+
margin: 0 1px;
714+
715+
:deep(.nut-tag) {
716+
padding: 2px 3px;
717+
font-size: 11px;
718+
line-height: 1.2;
719+
}
714720
}
715721
.compare-sub-link,
716722
.public-link-action,
717723
.copy-sub-link,
718724
.refresh-sub-flow {
719725
background-color: transparent;
720726
border: none;
721-
padding: 0 8px;
727+
padding: 0 6px;
722728
cursor: pointer;
723729
display: inline-flex;
724730
justify-content: center;
@@ -811,7 +817,7 @@
811817
.public-link-action,
812818
.copy-sub-link,
813819
.refresh-sub-flow {
814-
padding: 0 8px;
820+
padding: 0 6px;
815821
}
816822
817823
.sub-item-detail {

src/components/ShareListItem.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,14 @@ const onClickPreviews = () => {
469469
display: flex;
470470
justify-content: space-between;
471471
align-items: center;
472-
gap: 8px;
472+
gap: 2px;
473473
474474
.sub-item-title {
475475
flex: 1 1 auto;
476476
min-width: 0;
477477
display: flex;
478478
align-items: center;
479-
gap: 4px;
479+
gap: 3px;
480480
white-space: nowrap;
481481
overflow: hidden;
482482
font-size: 16px;
@@ -493,7 +493,13 @@ const onClickPreviews = () => {
493493
.tag {
494494
display: inline-flex;
495495
flex: 0 0 auto;
496-
margin: 0 2px;
496+
margin: 0 1px;
497+
498+
:deep(.nut-tag) {
499+
padding: 2px 3px;
500+
font-size: 11px;
501+
line-height: 1.2;
502+
}
497503
}
498504
499505
.link-item-actions {
@@ -508,7 +514,7 @@ const onClickPreviews = () => {
508514
.refresh-sub-flow {
509515
background-color: transparent;
510516
border: none;
511-
padding: 0 8px;
517+
padding: 0 6px;
512518
cursor: pointer;
513519
display: inline-flex;
514520
justify-content: center;

0 commit comments

Comments
 (0)