Skip to content

Commit

Permalink
fix: inconsistent UI
Browse files Browse the repository at this point in the history
  • Loading branch information
paolojulian committed Jul 28, 2024
1 parent 2df6c6b commit ad5d0e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
14 changes: 7 additions & 7 deletions app/add.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export default function AddScreen() {
};

return (
<AppSafeAreaView>
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
style={styles.container}
>
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
style={styles.container}
>
<AppSafeAreaView edges={['top']}>
<ThemedView style={styles.main}>
<Container>
<ThemedView style={styles.header}>
Expand All @@ -63,8 +63,8 @@ export default function AddScreen() {
<AddFactory type={selectedItem} />
</ThemedView>
</ThemedView>
</KeyboardAvoidingView>
</AppSafeAreaView>
</AppSafeAreaView>
</KeyboardAvoidingView>
);
}

Expand Down
2 changes: 1 addition & 1 deletion components/common/BentoCard/ItemValueBentoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function ItemValueBentoCard({ value, label }: ItemValueBentoCardProps) {
typeof label === 'string' ? <ThemedText variant="body">{label}</ThemedText> : label;
return (
<BentoCard>
<Stack style={{ aspectRatio: '1/1', alignItems: 'center', justifyContent: 'space-between' }}>
<Stack style={{ aspectRatio: 1, alignItems: 'center', justifyContent: 'flex-end' }}>
{ValueComponent}
{LabelComponent}
</Stack>
Expand Down
7 changes: 4 additions & 3 deletions components/common/ThemedText/ThemedText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,22 @@ export const themedTextStyles = StyleSheet.create({
fontSize: 48,
fontWeight: 800,
fontFamily: 'PoppinsBold',
lineHeight: 56,
},
body: {
fontSize: 14,
fontFamily: 'PoppinsRegular',
lineHeight: 21,
lineHeight: 20,
},
body1: {
fontSize: 16,
fontFamily: 'PoppinsRegular',
lineHeight: 25,
lineHeight: 24,
},
body2: {
fontSize: 16,
fontWeight: 500,
fontFamily: 'PoppinsMedium',
lineHeight: 25,
lineHeight: 24,
},
});

0 comments on commit ad5d0e8

Please sign in to comment.