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>()
99<template >
1010 <div class =" store-item" >
1111 <a :href =" url" target =" _blank" >
12- <img
13- width =" 308"
14- height =" 308"
12+ <NuxtImg
1513 :alt
1614 :src
17- decoding =" async"
15+ width =" 616"
16+ height =" 616"
17+ fit =" cover"
18+ preload
1819 loading =" lazy"
20+ class =" image"
1921 />
2022 </a >
2123 <div class =" name" >{{ name }}</div >
@@ -39,7 +41,7 @@ const props = defineProps<StoreItemProps>()
3941}
4042
4143.store-item img {
42- border : 1px solid #DCE1E5 ;
44+ border : 1px solid #dce1e5 ;
4345 border-radius : 8px ;
4446}
4547
@@ -50,6 +52,11 @@ const props = defineProps<StoreItemProps>()
5052 line-height : 1 ;
5153}
5254
55+ .image {
56+ width : 100% ;
57+ height : 100% ;
58+ }
59+
5360.explain {
5461 margin-top : 8px ;
5562 white-space : pre-wrap ;
@@ -61,7 +68,7 @@ const props = defineProps<StoreItemProps>()
6168
6269 &::v-deep(a :hover ) {
6370 opacity : 0.4 ;
64- transition : .2s ;
71+ transition : 0 .2s ;
6572 }
6673
6774 &::v-deep(p ) {
You can’t perform that action at this time.
0 commit comments