Commit 3459fc6b authored by shilei's avatar shilei

fix: 首页资源图片显示

parent 6cd9aac0
......@@ -162,7 +162,7 @@
class="relative w-[272px] cursor-pointer"
@click="toDetail(item)"
>
<img class="h-[205px] w-[272px] rounded-sm" :src="item.imgUrl" alt="" />
<CommonImage class="h-[205px] w-[272px] rounded-sm" :src="item.imgUrl" alt="" />
<span
v-if="item.isSuper"
class="absolute left-0 top-0 block rounded-tl-sm bg-[#C0322B] px-3 text-sm font-semibold leading-[26px] text-white"
......@@ -317,7 +317,7 @@ import { useJump } from '@/composable/useJump.ts';
import { useRouter } from 'vue-router';
import { isEmpty, uniqueId } from 'lodash-es';
import type { HeaderMenuItem } from '@/types/common';
// import CommonImage from '@/components/common/CommonImage.vue';
import CommonImage from '@/components/common/CommonImage.vue';
import { filterAddress, formatNumber } from '@/utils/filters.ts';
import ListInfo from '@/components/list/ListInfo.vue';
import { useMessage } from '@/composable/useMessage.ts';
......@@ -627,10 +627,6 @@ watchEffect(async () => {
border-radius: 4px;
}
.home-media {
.el-image {
width: 165px;
height: 124px;
}
.text-xl {
font-size: 18px;
width: 180px;
......@@ -638,11 +634,6 @@ watchEffect(async () => {
white-space: nowrap;
overflow: hidden;
}
.ell2 {
-webkit-line-clamp: 1;
width: 272px;
display: block;
}
.mt-\[17px\] {
margin-top: 6px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment