駅名標に不要な要素が残るバグを修正

This commit is contained in:
harukin-DeskMini 2023-02-05 04:56:24 +09:00
parent 5867ad3aa8
commit c2ca832b80

View File

@ -145,10 +145,10 @@ const NexPreStationLine = ({ nexStation, preStation }) => {
return ( return (
<View style={styleSheet.下枠フレーム}> <View style={styleSheet.下枠フレーム}>
<View style={styleSheet.下枠フレーム}> <View style={styleSheet.下枠フレーム}>
{preStation && ( {preStation ? (
<> <>
<Text style={styleSheet.下枠左右マーク}></Text> <Text style={styleSheet.下枠左右マーク}></Text>
{preStation.StationNumber && ( {preStation.StationNumber ? (
<View style={styleSheet.下枠駅ナンバー}> <View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
<Text <Text
@ -161,22 +161,26 @@ const NexPreStationLine = ({ nexStation, preStation }) => {
</Text> </Text>
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
</View> </View>
) : (
<></>
)} )}
<StationName <StationName
stringData={preStation} stringData={preStation}
ss={{ flex: 1, alignItems: "flex-start" }} ss={{ flex: 1, alignItems: "flex-start" }}
/> />
</> </>
) : (
<></>
)} )}
</View> </View>
<View style={styleSheet.下枠フレーム}> <View style={styleSheet.下枠フレーム}>
{nexStation && ( {nexStation ? (
<> <>
<StationName <StationName
stringData={nexStation} stringData={nexStation}
ss={{ flex: 1, alignItems: "flex-end" }} ss={{ flex: 1, alignItems: "flex-end" }}
/> />
{nexStation.StationNumber && ( {nexStation.StationNumber ? (
<View style={styleSheet.下枠駅ナンバー}> <View style={styleSheet.下枠駅ナンバー}>
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
<Text style={{ fontSize: parseInt("10%"), color: "white" }}> <Text style={{ fontSize: parseInt("10%"), color: "white" }}>
@ -184,9 +188,13 @@ const NexPreStationLine = ({ nexStation, preStation }) => {
</Text> </Text>
<View style={{ flex: 1 }} /> <View style={{ flex: 1 }} />
</View> </View>
) : (
<></>
)} )}
<Text style={styleSheet.下枠左右マーク}></Text> <Text style={styleSheet.下枠左右マーク}></Text>
</> </>
) : (
<></>
)} )}
</View> </View>
</View> </View>