Skip to content

Commit

Permalink
style: misc style clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
finnmerlett committed Jan 16, 2025
1 parent 9545fb8 commit 7e2f735
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ export default function Main() {
color: theme.colors.surface,
},
freezeOnBlur: true,
headerTintColor: theme.colors.surface,
headerPressColor: 'rgba(255, 255, 255, 0.32)',
}}
>
<MainStack.Screen
Expand Down
9 changes: 6 additions & 3 deletions src/components/SecretCard/SecretCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ const styles = StyleSheet.create({
paddingHorizontal: theme.spacing(1),
},
cardActions: {
justifyContent: 'space-between',
flexDirection: 'row',
justifyContent: 'space-between',
flex: 1,
gap: theme.spacing(1),
padding: theme.spacing(1),
},
rightActions: {
justifyContent: 'flex-end',
Expand Down Expand Up @@ -148,7 +151,7 @@ export const SecretCard: React.FC<SecretProps> = ({
<Divider />
</Animated.View>
</Card.Content>
<Card.Actions style={styles.cardActions}>
<View style={styles.cardActions}>
<View style={styles.leftActions}>
{deleteInProgress ? (
<Text style={styles.deleteLabel}>Deleting secret...</Text>
Expand All @@ -174,7 +177,7 @@ export const SecretCard: React.FC<SecretProps> = ({
</Button>
)}
</View>
</Card.Actions>
</View>
</Card>
</View>
)
Expand Down

0 comments on commit 7e2f735

Please sign in to comment.