From 87dfc4f33526c6d8c97211300c6b9e82893335cd Mon Sep 17 00:00:00 2001 From: Blizzard Date: Sun, 4 Oct 2026 09:37:17 +0800 Subject: [PATCH] Keep corgi artwork fully visible in mini program banners --- pets-fe/pages/home/home.wxss | 18 +++++++--------- pets-fe/pages/meetups/meetups.wxml | 17 +++++++-------- pets-fe/pages/meetups/meetups.wxss | 33 +++++++++++++++++------------- pets-fe/pages/pets/pets.wxss | 20 +++++++++--------- 4 files changed, 43 insertions(+), 45 deletions(-) diff --git a/pets-fe/pages/home/home.wxss b/pets-fe/pages/home/home.wxss index 9691430..b5b5975 100644 --- a/pets-fe/pages/home/home.wxss +++ b/pets-fe/pages/home/home.wxss @@ -9,22 +9,20 @@ box-shadow: 0 5rpx 22rpx #174b3520; } .hero { - height: 330rpx; + min-height: 330rpx; background: #194f42; border-radius: 38rpx; - position: relative; - overflow: hidden; display: flex; align-items: center; + gap: 12rpx; padding: 35rpx; color: white; } .hero-copy { - position: relative; - z-index: 2; display: flex; flex-direction: column; - width: 62%; + flex: 1; + min-width: 0; } .hero-small { color: #abd9b8; @@ -46,11 +44,9 @@ margin-top: 36rpx; } .hero image { - position: absolute; - width: 310rpx; - height: 290rpx; - right: -24rpx; - bottom: 8rpx; + width: 48%; + height: 220rpx; + flex-shrink: 0; } .heading { margin-top: 8rpx; diff --git a/pets-fe/pages/meetups/meetups.wxml b/pets-fe/pages/meetups/meetups.wxml index 9d4ad6a..21dddc0 100644 --- a/pets-fe/pages/meetups/meetups.wxml +++ b/pets-fe/pages/meetups/meetups.wxml @@ -2,12 +2,11 @@ LET'S WALK TOGETHER 约个伴一起遛 🌿 @@ -45,10 +44,8 @@ 📍 {{active.place_name}} {{active.latitude?'· 点开地图':''}} -
- 🗓 {{active.date}} -
- 🐕 {{active.participants}} / {{active.max_people}} 人已报名 + 🗓 {{active.date}} + 🐕 {{active.participants}} / {{active.max_people}} 人已报名
{{active.description}} diff --git a/pets-fe/pages/meetups/meetups.wxss b/pets-fe/pages/meetups/meetups.wxss index 7754ef8..ad19af4 100644 --- a/pets-fe/pages/meetups/meetups.wxss +++ b/pets-fe/pages/meetups/meetups.wxss @@ -2,31 +2,36 @@ background: #dfeee2; border-radius: 34rpx; min-height: 245rpx; - padding: 36rpx; - position: relative; - overflow: hidden; + padding: 30rpx; + display: flex; + align-items: center; + gap: 12rpx; } -.banner text, -.banner strong { +.banner-copy { + flex: 1; + min-width: 0; +} +.banner-copy text, +.banner-title { display: block; - position: relative; - z-index: 2; } -.banner text { +.banner-copy text { color: #549375; font-size: 22rpx; } -.banner strong { +.banner-title { font-size: 35rpx; line-height: 1.3; + font-weight: 800; + white-space: nowrap; +} +.banner-title.first { margin-top: 16rpx; } .banner image { - width: 290rpx; - height: 220rpx; - position: absolute; - right: -30rpx; - bottom: 0; + width: 52%; + height: 190rpx; + flex-shrink: 0; } .add { font-size: 24rpx; diff --git a/pets-fe/pages/pets/pets.wxss b/pets-fe/pages/pets/pets.wxss index 669a49d..30d3f69 100644 --- a/pets-fe/pages/pets/pets.wxss +++ b/pets-fe/pages/pets/pets.wxss @@ -4,14 +4,17 @@ color: white; min-height: 220rpx; padding: 35rpx; - position: relative; - overflow: hidden; + display: flex; + align-items: center; + gap: 12rpx; +} +.family > view { + flex: 1; + min-width: 0; } .family text, .family strong { display: block; - position: relative; - z-index: 2; } .family text { color: #a4d6b8; @@ -19,15 +22,12 @@ } .family strong { font-size: 32rpx; - width: 55%; margin-top: 20rpx; } .family image { - width: 270rpx; - height: 205rpx; - position: absolute; - right: -5rpx; - bottom: 0; + width: 48%; + height: 185rpx; + flex-shrink: 0; } .add { font-weight: 800;