From f5f89a1c722c3eee56a674d279d0d2a9b9b55b6f Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 26 Nov 2025 16:50:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=AE=AD=E5=A4=B4=E7=BB=9D=E5=AF=B9?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=20=E7=A7=BB=E9=99=A4=E5=B7=A6=E5=8F=B3=20pad?= =?UTF-8?q?ding=20=E9=9A=90=E8=97=8F=E9=87=8D=E5=A4=8D=E7=AE=AD=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Community/components/HotEvents.css | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/Community/components/HotEvents.css b/src/views/Community/components/HotEvents.css index 56f0babe..db205f10 100644 --- a/src/views/Community/components/HotEvents.css +++ b/src/views/Community/components/HotEvents.css @@ -37,7 +37,7 @@ } .hot-events-carousel { - padding: 0 40px; /* 增加左右padding为箭头留出空间 */ + padding: 0; /* 移除左右padding,箭头使用绝对定位 */ position: relative; } @@ -65,13 +65,20 @@ color: #096dd9 !important; } -/* 箭头位置 */ +/* 箭头位置 - 绝对定位,悬浮在卡片边缘 */ .hot-events-carousel .slick-prev.custom-carousel-arrow { - left: 0 !important; + left: 8px !important; + position: absolute; } .hot-events-carousel .slick-next.custom-carousel-arrow { - right: 0 !important; + right: 8px !important; + position: absolute; +} + +/* 隐藏可能重复的默认箭头 */ +.hot-events-carousel .slick-arrow:not(.custom-carousel-arrow) { + display: none !important; } /* 禁用状态 */