File tree 10 files changed +50
-31
lines changed
10 files changed +50
-31
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ onMounted(() => {
315
315
</script >
316
316
317
317
<template >
318
- <NFlex justify =" center" align =" center" vertical >
318
+ <NFlex class = " panel-container " justify =" center" align =" center" vertical >
319
319
<TitleLink
320
320
v-if =" title"
321
321
class =" show-title"
@@ -372,8 +372,16 @@ onMounted(() => {
372
372
</template >
373
373
374
374
<style lang="scss" scoped>
375
- .show-title-skeleton {
376
- height : 1.5rem ;
377
- margin-top : 0.625rem ;
375
+ .panel-container {
376
+ & > div :nth-child (n + 3 ) {
377
+ @media (width > 1200px ) {
378
+ max-width : min (var (--half-width ), var (--height-70-dvh ));
379
+ }
380
+ }
381
+
382
+ .show-title-skeleton {
383
+ height : 1.5rem ;
384
+ margin-top : 0.625rem ;
385
+ }
378
386
}
379
387
</style >
Original file line number Diff line number Diff line change @@ -223,9 +223,9 @@ onMounted(() => fetchLists());
223
223
.panel-buttons {
224
224
display : flex ;
225
225
flex-wrap : wrap ;
226
- gap : 1 rem ;
226
+ gap : 1.25 rem ;
227
227
align-items : center ;
228
- justify-content : center ;
228
+ justify-content : space-around ;
229
229
width : 100% ;
230
230
margin : 0.75rem 1rem 1.25rem ;
231
231
@@ -236,12 +236,6 @@ onMounted(() => fetchLists());
236
236
}
237
237
}
238
238
239
- @media (width > 800px ) {
240
- .panel-buttons {
241
- gap : 1.25rem 3rem ;
242
- }
243
- }
244
-
245
239
@media (width < 660px ) {
246
240
.button-container {
247
241
min-width : 45% ;
Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ const key = computed(() => {
81
81
@include transition .scale ;
82
82
83
83
.poster-container {
84
- --poster-height : calc (50 dvw * (9 / 16 ));
84
+ --poster-height : calc (min ( var ( --half-width ), var ( --height-70-dvh )) * (9 / 16 ));
85
85
--poster-width : calc (var (--poster-height ) * (2 / 3 ));
86
86
87
87
& .landscape {
88
- --poster-width : 50 dvw ;
88
+ --poster-width : min ( var ( --half-width ), var ( --height-70-dvh )) ;
89
89
--poster-height : calc (var (--poster-width ) * (9 / 16 ));
90
90
}
91
91
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ const _rating = computed(() => (rating?.value ?? 0) * 10);
122
122
--duration : 1000ms ;
123
123
124
124
flex : 1 0 6rem ;
125
+ max-width : 24rem ;
125
126
126
127
.rating-skeleton {
127
128
width : 2.125rem ;
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ const containerRef = ref<InstanceType<typeof TextField>>();
107
107
--duration : 1000ms ;
108
108
109
109
flex : 1 0 6rem ;
110
+ max-width : 24rem ;
110
111
111
112
.score-label {
112
113
align-self : center ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const isCompact = watchMedia('(max-width: 725px)');
47
47
</script >
48
48
49
49
<template >
50
- <NFlex class =" statistics-container" justify =" space-around " >
50
+ <NFlex class =" statistics-container" justify =" center " >
51
51
<slot v-if =" isCompact" />
52
52
<PanelRating
53
53
v-if =" enableRatings"
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ const { openTab } = useLinksStore();
67
67
</script >
68
68
69
69
<template >
70
- <NFlex justify =" center" align =" center" vertical >
70
+ <NFlex class = " panel-container " justify =" center" align =" center" vertical >
71
71
<TitleLink
72
72
v-if =" title"
73
73
class =" show-title"
@@ -93,8 +93,16 @@ const { openTab } = useLinksStore();
93
93
</template >
94
94
95
95
<style lang="scss" scoped>
96
- .show-title-skeleton {
97
- height : 1.5rem ;
98
- margin-top : 0.625rem ;
96
+ .panel-container {
97
+ & > div :nth-child (n + 3 ) {
98
+ @media (width > 1200px ) {
99
+ max-width : min (var (--half-width ), var (--height-70-dvh ));
100
+ }
101
+ }
102
+
103
+ .show-title-skeleton {
104
+ height : 1.5rem ;
105
+ margin-top : 0.625rem ;
106
+ }
99
107
}
100
108
</style >
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ const { openTab } = useLinksStore();
523
523
</script >
524
524
525
525
<template >
526
- <NFlex justify =" center" align =" center" vertical >
526
+ <NFlex class = " panel-container " justify =" center" align =" center" vertical >
527
527
<TitleLink
528
528
v-if =" title"
529
529
class =" show-title"
@@ -603,8 +603,16 @@ const { openTab } = useLinksStore();
603
603
</template >
604
604
605
605
<style lang="scss" scoped>
606
- .show-title-skeleton {
607
- height : 1.5rem ;
608
- margin-top : 0.625rem ;
606
+ .panel-container {
607
+ & > div :nth-child (n + 3 ) {
608
+ @media (width > 1200px ) {
609
+ max-width : min (var (--half-width ), var (--height-70-dvh ));
610
+ }
611
+ }
612
+
613
+ .show-title-skeleton {
614
+ height : 1.5rem ;
615
+ margin-top : 0.625rem ;
616
+ }
609
617
}
610
618
</style >
Original file line number Diff line number Diff line change @@ -314,9 +314,9 @@ onMounted(() => fetchLists());
314
314
.panel-buttons {
315
315
display : flex ;
316
316
flex-wrap : wrap ;
317
- gap : 1 rem ;
317
+ gap : 1.25 rem ;
318
318
align-items : center ;
319
- justify-content : center ;
319
+ justify-content : space-around ;
320
320
width : 100% ;
321
321
margin : 1rem 1rem 1.25rem ;
322
322
@@ -347,12 +347,6 @@ onMounted(() => fetchLists());
347
347
}
348
348
}
349
349
350
- @media (width > 800px ) {
351
- .panel-buttons {
352
- gap : 1.25rem 3rem ;
353
- }
354
- }
355
-
356
350
@media (width < 660px ) {
357
351
.button-container {
358
352
min-width : 45% ;
Original file line number Diff line number Diff line change 4
4
--full-height : 100 dvh;
5
5
--half-height : 50 dvh;
6
6
--height-40-dvh : 40 dvh;
7
+ --height-70-dvh : 70 dvh;
8
+
9
+ /* * width */
10
+ --full-width : 100 dvw;
11
+ --half-width : 50 dvw;
7
12
8
13
/* font variables */
9
14
--font-size-xxs : 0.625rem ;
You can’t perform that action at this time.
0 commit comments