File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
packages/ui/components/store Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ const props = defineProps<StoreItemProps>()
9
9
<template >
10
10
<div class =" store-item" >
11
11
<a :href =" url" target =" _blank" >
12
- <img
13
- width =" 308"
14
- height =" 308"
12
+ <NuxtImg
15
13
:alt
16
14
:src
17
- decoding =" async"
15
+ width =" 616"
16
+ height =" 616"
17
+ fit =" cover"
18
+ preload
18
19
loading =" lazy"
20
+ class =" image"
19
21
/>
20
22
</a >
21
23
<div class =" name" >{{ name }}</div >
@@ -39,7 +41,7 @@ const props = defineProps<StoreItemProps>()
39
41
}
40
42
41
43
.store-item img {
42
- border : 1px solid #DCE1E5 ;
44
+ border : 1px solid #dce1e5 ;
43
45
border-radius : 8px ;
44
46
}
45
47
@@ -50,6 +52,11 @@ const props = defineProps<StoreItemProps>()
50
52
line-height : 1 ;
51
53
}
52
54
55
+ .image {
56
+ width : 100% ;
57
+ height : 100% ;
58
+ }
59
+
53
60
.explain {
54
61
margin-top : 8px ;
55
62
white-space : pre-wrap ;
@@ -61,7 +68,7 @@ const props = defineProps<StoreItemProps>()
61
68
62
69
&::v-deep(a :hover ) {
63
70
opacity : 0.4 ;
64
- transition : .2s ;
71
+ transition : 0 .2s ;
65
72
}
66
73
67
74
&::v-deep(p ) {
You can’t perform that action at this time.
0 commit comments