From a68b9fbf9dd97b64d361087f05b30bdbfd62c0a9 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Tue, 14 Apr 2026 13:49:16 +0800 Subject: [PATCH] =?UTF-8?q?flx:=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/views/public/Activities.vue | 32 ++++--------------- .../src/views/public/ActivityDetail.vue | 11 ++++--- 2 files changed, 13 insertions(+), 30 deletions(-) diff --git a/lesingle-creation-frontend/src/views/public/Activities.vue b/lesingle-creation-frontend/src/views/public/Activities.vue index 263e250..7da9759 100644 --- a/lesingle-creation-frontend/src/views/public/Activities.vue +++ b/lesingle-creation-frontend/src/views/public/Activities.vue @@ -7,14 +7,8 @@

发现精彩活动,展现创作才华

@@ -28,18 +22,9 @@
-
+
- +
{{ item.contestName.charAt(0) }}
@@ -69,12 +54,7 @@
- +
@@ -218,7 +198,7 @@ $primary: #6366f1; } .card-cover { - height: 160px; + height: 200px; position: relative; overflow: hidden; diff --git a/lesingle-creation-frontend/src/views/public/ActivityDetail.vue b/lesingle-creation-frontend/src/views/public/ActivityDetail.vue index 46d5aaf..1e61cdc 100644 --- a/lesingle-creation-frontend/src/views/public/ActivityDetail.vue +++ b/lesingle-creation-frontend/src/views/public/ActivityDetail.vue @@ -693,15 +693,18 @@ $primary: #6366f1; .detail-hero { position: relative; - height: 220px; + min-height: 150px; + display: flex; + // height: 220px; border-radius: 20px; overflow: hidden; margin-bottom: 16px; .hero-cover { width: 100%; - height: 100%; - object-fit: cover; + // height: 100%; + object-fit: contain; + margin: auto; } .hero-placeholder { @@ -1258,7 +1261,7 @@ $primary: #6366f1; @media (max-width: 640px) { .detail-hero { - height: 180px; + // height: 180px; border-radius: 16px; }