フォントサイズ調整
This commit is contained in:
parent
48e1ab7b26
commit
d43b0a1942
@ -131,11 +131,11 @@ export const JRSTraInfo = () => {
|
||||
let data = d.split(" ");
|
||||
return (
|
||||
<View style={{ flexDirection: "row" }} key={data[1]}>
|
||||
<Text style={{ flex: 15, fontSize: 20 }}>
|
||||
<Text style={{ flex: 15, fontSize: 18 }}>
|
||||
{data[0].replace("\n", "")}
|
||||
</Text>
|
||||
<Text style={{ flex: 5, fontSize: 20 }}>{data[1]}</Text>
|
||||
<Text style={{ flex: 6, fontSize: 20 }}>{data[3]}</Text>
|
||||
<Text style={{ flex: 5, fontSize: 18 }}>{data[1]}</Text>
|
||||
<Text style={{ flex: 6, fontSize: 18 }}>{data[3]}</Text>
|
||||
</View>
|
||||
);
|
||||
})
|
||||
|
@ -390,7 +390,7 @@ const TrainName = ({
|
||||
<View style={{ flex: 9 }}>
|
||||
<Text
|
||||
style={{
|
||||
fontSize: trainName.length > 6 ? parseInt("13%") : parseInt("18%"),
|
||||
fontSize: trainName.length > 6 ? parseInt("12%") : parseInt("16%"),
|
||||
color: color,
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
@ -406,7 +406,7 @@ const LastStation = ({ lastStation }) => {
|
||||
<View style={{ flex: 4, flexDirection: "row" }}>
|
||||
<Text
|
||||
style={{
|
||||
fontSize: lastStation.length > 4 ? parseInt("13%") : parseInt("18%"),
|
||||
fontSize: lastStation.length > 4 ? parseInt("12%") : parseInt("16%"),
|
||||
color: "white",
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
@ -421,7 +421,7 @@ const DependTime = ({ time }) => (
|
||||
<View style={{ flex: 3 }}>
|
||||
<Text
|
||||
style={{
|
||||
fontSize: parseInt("18%"),
|
||||
fontSize: parseInt("16%"),
|
||||
color: "white",
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
@ -436,7 +436,7 @@ const StatusAndDelay = ({ trainDelayStatus }) => {
|
||||
<View style={{ flex: 4 }}>
|
||||
<Text
|
||||
style={{
|
||||
fontSize: parseInt("18%"),
|
||||
fontSize: parseInt("16%"),
|
||||
color: "white",
|
||||
fontWeight: "bold",
|
||||
paddingLeft: 1,
|
||||
@ -464,7 +464,7 @@ const Description = ({ info, numberOfLines = 0, onClick }) => (
|
||||
<View style={{ flex: 4 }}>
|
||||
<Text
|
||||
style={{
|
||||
fontSize: parseInt("18%"),
|
||||
fontSize: parseInt("16%"),
|
||||
color: "green",
|
||||
fontWeight: "bold",
|
||||
}}
|
||||
|
6
menu.js
6
menu.js
@ -395,11 +395,11 @@ const JRSTraInfoBox = () => {
|
||||
let data = d.split(" ");
|
||||
return (
|
||||
<View style={{ flexDirection: "row" }} key={data[1] + "key"}>
|
||||
<Text style={{ flex: 15, fontSize: 20 }}>
|
||||
<Text style={{ flex: 15, fontSize: 18 }}>
|
||||
{data[0].replace("\n", "")}
|
||||
</Text>
|
||||
<Text style={{ flex: 5, fontSize: 20 }}>{data[1]}</Text>
|
||||
<Text style={{ flex: 6, fontSize: 20 }}>{data[3]}</Text>
|
||||
<Text style={{ flex: 5, fontSize: 18 }}>{data[1]}</Text>
|
||||
<Text style={{ flex: 6, fontSize: 18 }}>{data[3]}</Text>
|
||||
</View>
|
||||
);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user