From 9959fbe5c9a23a98f0c2755880420909260012eb Mon Sep 17 00:00:00 2001 From: harukin-OneMix4 Date: Wed, 22 Feb 2023 20:27:30 +0900 Subject: [PATCH] =?UTF-8?q?LED=E3=81=AE=E6=96=87=E5=AD=97=E3=82=B5?= =?UTF-8?q?=E3=82=A4=E3=82=BA=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/発車時刻表/LED_vidion.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/発車時刻表/LED_vidion.js b/components/発車時刻表/LED_vidion.js index 9d52ca9..e538c9b 100644 --- a/components/発車時刻表/LED_vidion.js +++ b/components/発車時刻表/LED_vidion.js @@ -404,7 +404,7 @@ const TrainName = ({ train, trainIDSwitch, d, getTrainType }) => { 6 ? 15 : 20, + fontSize: trainName.length > 6 ? parseInt("13%") : parseInt("18%"), color: getTrainType.color, fontWeight: "bold", }} @@ -422,7 +422,8 @@ const LastStation = ({ d }) => { 4 ? 15 : 20, + fontSize: + d.lastStation.length > 4 ? parseInt("13%") : parseInt("18%"), color: "white", fontWeight: "bold", }} @@ -437,7 +438,7 @@ const DependTime = ({ d }) => { { {status} @@ -512,7 +514,7 @@ const Description = ({ train }) => {