From 9f825f4ea867be208992d00f954ef1f792da0f7d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 18 Oct 2024 17:40:45 +0800 Subject: [PATCH] fix --- src/pages/Subscribe/index.less | 2 ++ src/pages/Subscribe/index.tsx | 1 + src/pages/UserHome/UserSubscribe/index.less | 10 ++++------ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/Subscribe/index.less b/src/pages/Subscribe/index.less index 582adb8..a895a5b 100644 --- a/src/pages/Subscribe/index.less +++ b/src/pages/Subscribe/index.less @@ -205,6 +205,8 @@ .subscribe_content_singleItem_cover { width: 100%; height: 5.8rem; + max-height: 5.8rem; + min-height: 5.8rem; border-radius: .75rem; margin-bottom: .625rem; } diff --git a/src/pages/Subscribe/index.tsx b/src/pages/Subscribe/index.tsx index 9089edb..2096548 100644 --- a/src/pages/Subscribe/index.tsx +++ b/src/pages/Subscribe/index.tsx @@ -593,6 +593,7 @@ export default function Subscribe() { {item.PrdtTitle} diff --git a/src/pages/UserHome/UserSubscribe/index.less b/src/pages/UserHome/UserSubscribe/index.less index 2136f8d..bda34c1 100644 --- a/src/pages/UserHome/UserSubscribe/index.less +++ b/src/pages/UserHome/UserSubscribe/index.less @@ -1,11 +1,9 @@ .subscribe_bg { - width: 100vw; height: 100vh; background: #fafafa; padding: 0 1rem; .subscribe_scrollview { - width: calc(100% - 2rem); height: 100vh; background: #fafafa; display: flex; @@ -75,7 +73,7 @@ position: relative; width: 100%; /* 或者任意宽度 */ padding-top: calc((1 / 1) * 100%); /* 计算高度以保持16:9比例 */ - + .item_content_image0 { position: absolute; top: 0; @@ -99,7 +97,7 @@ position: relative; width: 100%; /* 或者任意宽度 */ padding-top: calc((9 / 16) * 100%); /* 计算高度以保持16:9比例 */ - + .shade { position: absolute; top: 0; @@ -119,7 +117,7 @@ margin: auto; } } - + .item_content_image1 { position: absolute; top: 0; @@ -177,4 +175,4 @@ } } } -} \ No newline at end of file +}