From 604236a7b29b47d63e7477ae172bd0d3ca98fe68 Mon Sep 17 00:00:00 2001 From: zoujing Date: Tue, 28 Apr 2026 14:10:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Discovery/components/CardSwiper/index.vue | 2 +- src/pages/Discovery/components/CardSwiper/styles/index.scss | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Discovery/components/CardSwiper/index.vue b/src/pages/Discovery/components/CardSwiper/index.vue index 8d0fb4d..ef87054 100644 --- a/src/pages/Discovery/components/CardSwiper/index.vue +++ b/src/pages/Discovery/components/CardSwiper/index.vue @@ -241,7 +241,7 @@ const getSlotState = (role) => { const buildCardStyle = (role) => { const state = getSlotState(role); return { - transform: `translate3d(-50%, -50%, 0) translateX(${state.x}px) scale(${state.scale})`, + transform: `translate3d(-50%, 0, 0) translateX(${state.x}px) scale(${state.scale})`, opacity: state.opacity, zIndex: getCardZIndex(role), transition: isDragging.value diff --git a/src/pages/Discovery/components/CardSwiper/styles/index.scss b/src/pages/Discovery/components/CardSwiper/styles/index.scss index c056c9a..f4c6419 100644 --- a/src/pages/Discovery/components/CardSwiper/styles/index.scss +++ b/src/pages/Discovery/components/CardSwiper/styles/index.scss @@ -5,14 +5,14 @@ .swiper-stage { position: relative; width: 100%; - height: 278px; + height: 270px; overflow: hidden; } .swiper-card { position: absolute; left: 50%; - top: 50%; + top: 8px; width: 236px; height: 234px; max-width: calc(100% - 56px);