From d0ca2d961ba56f98f67b639f41558a8fff8d2785 Mon Sep 17 00:00:00 2001 From: jacobxu666 Date: Wed, 2 Sep 2026 20:56:56 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=95=86=E6=88=B7=E6=8A=98=E6=89=A3?= =?UTF-8?q?=E9=A1=B5=E5=90=8D=E7=A7=B0=E5=8D=95=E8=A1=8C=E6=92=91=E6=BB=A1?= =?UTF-8?q?=E7=9C=81=E7=95=A5=EF=BC=8C=E5=9C=B0=E5=9D=80=E4=B8=8E=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB=E5=90=88=E5=B9=B6=E4=B8=BA=E5=90=8C=E4=B8=80=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/discount/discount.vue | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/pages/discount/discount.vue b/pages/discount/discount.vue index 68daaf2..66f6ba0 100644 --- a/pages/discount/discount.vue +++ b/pages/discount/discount.vue @@ -22,11 +22,14 @@ {{ item.name }} {{ item.category }} - {{ item.address }} - - - - {{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }} + + + {{ item.address }} + + + {{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }} + + @@ -218,6 +221,10 @@ export default { font-size: 16px; font-weight: 500; color: #000000; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .card-category { @@ -226,14 +233,21 @@ export default { margin-top: 8px; } +.card-address-row { + display: flex; + align-items: center; + gap: 8px; + width: 100%; + margin-top: 8px; +} + .card-address { + flex: 1; font-size: 14px; color: #727272; - margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - max-width: 200px; } .card-distance {