From 5e8d4f7bbebd5778a78b57be898fb854d807b527 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Thu, 16 Jul 2026 22:49:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E7=BA=BF=E8=B7=AF=E7=9A=84=E5=9C=B0=E5=9B=BE=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=EF=BC=8C=E6=97=A0=E8=AE=BA=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E5=A4=9A=E5=B0=91=EF=BC=8C=E5=AE=B9=E5=99=A8=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E9=83=BD=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/ticket-order.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ticket-order.js b/web/ticket-order.js index 4e12a29..fcc9b19 100644 --- a/web/ticket-order.js +++ b/web/ticket-order.js @@ -208,7 +208,7 @@ svgContent += renderStationNode(pts[i].x, pts[i].y, pts[i].code, i, li.color); } - const width = startX + pts.length * gapX + 40; + const width = Math.max(container.clientWidth || 800, startX + pts.length * gapX + 40); const height = 120; // 添加 tvm-animate 类实现动画过渡 container.innerHTML = `${svgContent}`; @@ -288,7 +288,7 @@ svgContent += renderStationNode(startX + i * gapX, y, routeCodes[i], i); } - const width = startX + routeCodes.length * gapX + 40; + const width = Math.max(container.clientWidth || 800, startX + routeCodes.length * gapX + 40); const height = 120; container.innerHTML = `${svgContent}`; }