Small fixes in views

This commit is contained in:
Martin Bauer 2023-10-28 14:07:27 +02:00
parent 977d4bcbc9
commit 6ed968a8c5
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ const IconCard = props => {
<Text style={{ color: 'white', fontSize: props.fontSize, textAlign: "center" }}> {props.value}</Text> <Text style={{ color: 'white', fontSize: props.fontSize, textAlign: "center" }}> {props.value}</Text>
</View> </View>
<View style={{ alignItems: 'center', justifyContent: 'center', paddingLeft: 20 }}> <View style={{ alignItems: 'center', justifyContent: 'center', paddingLeft: 20 }}>
<IconClass style={{ color: 'white', fontSize: 40 }} name={props.iconName} /> <IconClass style={{ color: 'white', fontSize: 30 }} name={props.iconName} />
<Text style={{ color: 'white', marginTop: 5 }}> {props.label}</Text> <Text style={{ color: 'white', marginTop: 5 }}> {props.label}</Text>
</View> </View>
</View> </View>

View File

@ -208,6 +208,6 @@ export default class SwimTrackerWebsocketConnection {
} }
_onError = (ev) => { _onError = (ev) => {
console.log("Websocket error", ev); console.log("Websocket error", ev, ev.error, ev.message);
} }
}; };

View File

@ -113,7 +113,7 @@ const buttonGridStyles = StyleSheet.create({
}, },
button: { button: {
flex: 1, flex: 1,
margin: 20, margin: 14,
padding: 20, padding: 20,
width: 120, width: 120,
height: 130, height: 130,
@ -125,7 +125,7 @@ const buttonGridStyles = StyleSheet.create({
buttonText: { buttonText: {
color: "rgba(255,255,255,1)", color: "rgba(255,255,255,1)",
textAlign: "center", textAlign: "center",
fontSize: 16, fontSize: 14,
}, },
icon: { icon: {
color: "rgba(255,255,255,1)", color: "rgba(255,255,255,1)",
@ -203,7 +203,7 @@ function MainMenuView(props) {
} }
const onStartButtonPress = () => { const onStartButtonPress = () => {
if (!props.connState !== ConnState.CONNECTED_RUNNING) { if (props.connState !== ConnState.CONNECTED_RUNNING) {
props.dispatch(startSession()); props.dispatch(startSession());
} }
props.navigation.navigate('Training') props.navigation.navigate('Training')