レイアウトの微修正

This commit is contained in:
harukin-OneMix4 2023-07-01 15:04:59 +09:00
parent b2624d319b
commit 26111e7ce8
2 changed files with 20 additions and 19 deletions

View File

@ -213,7 +213,7 @@ export default function Apps({
}, []); }, []);
if (returnDataBase.length) { if (returnDataBase.length) {
setStationBoardData(returnDataBase); setStationBoardData(returnDataBase);
sleep(30, function () { sleep(25, function () {
StationBoardAcSR.current?.show(); StationBoardAcSR.current?.show();
}); });
} else { } else {

View File

@ -180,23 +180,14 @@ export const EachTrainInfo = ({
onPress={() => openStationACFromEachTrainInfo(station)} onPress={() => openStationACFromEachTrainInfo(station)}
key={station} key={station}
> >
<View <View style={{ flexDirection: "row" }}>
style={{
padding: 8,
flexDirection: "row",
borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
paddingLeft: 60,
}}
>
<View <View
style={{ style={{
width: 35, width: 35,
height: 41, position: "relative",
position: "absolute", marginHorizontal: 15,
left: 10,
top: 0,
flexDirection: "row", flexDirection: "row",
height: "101%",
}} }}
> >
{colorIDs.map((color, index) => ( {colorIDs.map((color, index) => (
@ -232,11 +223,21 @@ export const EachTrainInfo = ({
</View> </View>
))} ))}
</View> </View>
<Text style={{ fontSize: 20 }}>{station}</Text> <View
<View style={{ flex: 1 }} /> style={{
<Text style={{ fontSize: 20 }}> padding: 8,
{time} {se} flexDirection: "row",
</Text> borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
flex: 1,
}}
>
<Text style={{ fontSize: 20 }}>{station}</Text>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 20 }}>
{time} {se}
</Text>
</View>
</View> </View>
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
); );