From 5bff05f8f673e4cceba0faddae8fdb55cb2e91e2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Mar 2026 10:33:34 +0000 Subject: [PATCH 1/4] =?UTF-8?q?TrainTypeBox=E4=B8=8B=E3=81=AE=E6=AC=A1?= =?UTF-8?q?=E3=81=AE=E7=A8=AE=E5=88=A5=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=81=8C1=E8=A1=8C=E3=81=A7=E5=8F=8E=E3=81=BE=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=ABadjustsFontSizeToFit=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://claude.ai/code/session_01AjvvoDzBxFXE7offduqWWm --- src/components/TrainTypeBox.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/TrainTypeBox.tsx b/src/components/TrainTypeBox.tsx index a1e0cba8f..ca124b365 100644 --- a/src/components/TrainTypeBox.tsx +++ b/src/components/TrainTypeBox.tsx @@ -336,6 +336,8 @@ const TrainTypeBox: React.FC = ({ color: nextTrainTypeColor, }, ]} + numberOfLines={1} + adjustsFontSizeToFit > {headerState.split('_')[1] === 'EN' ? `${nextLine?.company?.nameEnglishShort} Line ${truncateTrainType( From de4475d652fc36373b52cf4702572c942e5e9133 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Mar 2026 11:00:15 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E6=AC=A1=E3=81=AE=E7=A8=AE=E5=88=A5?= =?UTF-8?q?=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88=E3=81=AF=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=B3=E3=83=88=E7=B8=AE=E5=B0=8F=E3=81=9B=E3=81=9A=E6=8A=98?= =?UTF-8?q?=E3=82=8A=E8=BF=94=E3=81=97=E3=81=AE=E3=81=BF=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://claude.ai/code/session_01AjvvoDzBxFXE7offduqWWm --- src/components/TrainTypeBox.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/TrainTypeBox.tsx b/src/components/TrainTypeBox.tsx index ca124b365..640b86a67 100644 --- a/src/components/TrainTypeBox.tsx +++ b/src/components/TrainTypeBox.tsx @@ -337,7 +337,6 @@ const TrainTypeBox: React.FC = ({ }, ]} numberOfLines={1} - adjustsFontSizeToFit > {headerState.split('_')[1] === 'EN' ? `${nextLine?.company?.nameEnglishShort} Line ${truncateTrainType( From 4270c9f8d06b9389183bad906ccd3c324295fca0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Mar 2026 11:02:23 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E6=AC=A1=E3=81=AE=E7=A8=AE=E5=88=A5?= =?UTF-8?q?=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88=E3=82=92=E7=9C=81=E7=95=A5?= =?UTF-8?q?=E3=81=9B=E3=81=9A1=E8=A1=8C=E3=81=A7=E5=85=A8=E6=96=87?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?View=E3=83=A9=E3=83=83=E3=83=91=E3=83=BC=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://claude.ai/code/session_01AjvvoDzBxFXE7offduqWWm --- src/components/TrainTypeBox.tsx | 49 ++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/src/components/TrainTypeBox.tsx b/src/components/TrainTypeBox.tsx index 640b86a67..9f97ef5f5 100644 --- a/src/components/TrainTypeBox.tsx +++ b/src/components/TrainTypeBox.tsx @@ -73,13 +73,17 @@ const styles = StyleSheet.create({ width: isTablet ? 175 : 96.25, height: isTablet ? 55 : 30.25, }, - nextTrainType: { - fontWeight: 'bold', - fontSize: isTablet ? 18 : 12, - marginTop: 4, + nextTrainTypeWrapper: { position: 'absolute', top: isTablet ? 55 : 30.25, width: '100%', + alignItems: 'center', + overflow: 'visible', + marginTop: 4, + }, + nextTrainType: { + fontWeight: 'bold', + fontSize: isTablet ? 18 : 12, }, }); @@ -329,24 +333,25 @@ const TrainTypeBox: React.FC = ({ {showNextTrainType && nextTrainType?.nameRoman ? ( - - {headerState.split('_')[1] === 'EN' - ? `${nextLine?.company?.nameEnglishShort} Line ${truncateTrainType( - nextTrainType?.nameRoman?.replace(parenthesisRegexp, ''), - true - )}` - : `${ - nextLine?.company?.nameShort - }線内 ${nextTrainType?.name?.replace(parenthesisRegexp, '')}`} - + + + {headerState.split('_')[1] === 'EN' + ? `${nextLine?.company?.nameEnglishShort} Line ${truncateTrainType( + nextTrainType?.nameRoman?.replace(parenthesisRegexp, ''), + true + )}` + : `${ + nextLine?.company?.nameShort + }線内 ${nextTrainType?.name?.replace(parenthesisRegexp, '')}`} + + ) : null} ); From 880867fcf5ace4d4a5ce688d3fc6570124d5b47d Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Mar 2026 11:19:19 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=E6=AC=A1=E3=81=AE=E7=A8=AE=E5=88=A5?= =?UTF-8?q?=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88=E3=82=92Box=E5=B7=A6?= =?UTF-8?q?=E5=AF=84=E3=81=9B=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://claude.ai/code/session_01AjvvoDzBxFXE7offduqWWm --- src/components/TrainTypeBox.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TrainTypeBox.tsx b/src/components/TrainTypeBox.tsx index 9f97ef5f5..52c0b11c2 100644 --- a/src/components/TrainTypeBox.tsx +++ b/src/components/TrainTypeBox.tsx @@ -76,8 +76,7 @@ const styles = StyleSheet.create({ nextTrainTypeWrapper: { position: 'absolute', top: isTablet ? 55 : 30.25, - width: '100%', - alignItems: 'center', + alignItems: 'flex-start', overflow: 'visible', marginTop: 4, },