Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update UI margins to work with Android and iOS (#846)

Leendert de Borst763a859e22db
diff --git a/apps/mobile-app/app/(tabs)/credentials/[id].tsx b/apps/mobile-app/app/(tabs)/credentials/[id].tsx
index 5199ef640..49e9cfcd8 100644
--- a/apps/mobile-app/app/(tabs)/credentials/[id].tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/[id].tsx
@@ -140,7 +140,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
flexDirection: 'row',
gap: 12,
- paddingTop: 16,
},
headerRightButton: {
padding: 10,
@@ -157,7 +156,7 @@ const styles = StyleSheet.create({
justifyContent: 'center',
},
logo: {
- borderRadius: 8,
+ borderRadius: 4,
height: 48,
width: 48,
},
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
index 047952135..f899f892f 100644
--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
@@ -25,6 +25,8 @@ import LoadingOverlay from '@/components/LoadingOverlay';
import { useAuth } from '@/context/AuthContext';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
import { extractServiceNameFromUrl } from '@/utils/UrlUtility';
+import { useSafeAreaInsets } from 'react-native-safe-area-context';
+
type CredentialMode = 'random' | 'manual';
@@ -44,6 +46,7 @@ export default function AddEditCredentialScreen() : React.ReactNode {
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
const serviceNameRef = useRef<ValidatedFormFieldRef>(null);
const [isLoading, setIsLoading] = useState(false);
+ const insets = useSafeAreaInsets();
const { control, handleSubmit, setValue, watch } = useForm<Credential>({
resolver: yupResolver(credentialSchema) as Resolver<Credential>,
@@ -396,12 +399,16 @@ export default function AddEditCredentialScreen() : React.ReactNode {
};
const styles = StyleSheet.create({
+ keyboardContainer: {
+ flex: 1,
+ },
container: {
flex: 1,
+ paddingTop: Platform.OS === 'ios' ? 52 : 0,
},
contentContainer: {
paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? 32 : 0,
+ paddingTop: 16,
},
deleteButton: {
alignItems: 'center',
@@ -474,7 +481,7 @@ export default function AddEditCredentialScreen() : React.ReactNode {
color: colors.text,
fontSize: 18,
fontWeight: '600',
- marginBottom: 16,
+ marginBottom: 10,
},
});
@@ -513,10 +520,10 @@ export default function AddEditCredentialScreen() : React.ReactNode {
<LoadingOverlay status={syncStatus} />
)}
<KeyboardAvoidingView
- style={styles.container}
+ style={styles.keyboardContainer}
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
>
- <ThemedContainer>
+ <ThemedContainer style={styles.container}>
<KeyboardAwareScrollView
enableOnAndroid={true}
contentContainerStyle={styles.contentContainer}
diff --git a/apps/mobile-app/app/(tabs)/credentials/index.tsx b/apps/mobile-app/app/(tabs)/credentials/index.tsx
index 24e2e5b8b..c33124e59 100644
--- a/apps/mobile-app/app/(tabs)/credentials/index.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/index.tsx
@@ -222,7 +222,7 @@ export default function CredentialsScreen() : React.ReactNode {
},
contentContainer: {
paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? 42 : 0,
+ paddingTop: Platform.OS === 'ios' ? 42 : 16,
},
emptyText: {
color: colors.textMuted,
diff --git a/apps/mobile-app/app/(tabs)/emails/index.tsx b/apps/mobile-app/app/(tabs)/emails/index.tsx
index 576ad9bc0..41014d752 100644
--- a/apps/mobile-app/app/(tabs)/emails/index.tsx
+++ b/apps/mobile-app/app/(tabs)/emails/index.tsx
@@ -155,7 +155,7 @@ export default function EmailsScreen() : React.ReactNode {
},
contentContainer: {
paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? 42 : 0,
+ paddingTop: Platform.OS === 'ios' ? 42 : 16,
},
emptyText: {
color: colors.textMuted,
diff --git a/apps/mobile-app/app/(tabs)/settings/auto-lock.tsx b/apps/mobile-app/app/(tabs)/settings/auto-lock.tsx
index 66dcee38f..40af3a3ef 100644
--- a/apps/mobile-app/app/(tabs)/settings/auto-lock.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/auto-lock.tsx
@@ -40,9 +40,6 @@ export default function AutoLockScreen() : React.ReactNode {
];
const styles = StyleSheet.create({
- header: {
- paddingTop: 12,
- },
headerText: {
color: colors.textMuted,
fontSize: 13,
@@ -77,11 +74,9 @@ export default function AutoLockScreen() : React.ReactNode {
return (
<ThemedContainer>
<ThemedScrollView>
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
- Choose how long the app can stay in the background before requiring re-authentication. You&apos;ll need to use Face ID or enter your password to unlock the vault again.
- </ThemedText>
- </View>
+ <ThemedText style={styles.headerText}>
+ Choose how long the app can stay in the background before requiring re-authentication. You&apos;ll need to use Face ID or enter your password to unlock the vault again.
+ </ThemedText>
<View style={styles.optionContainer}>
{timeoutOptions.map((option, index) => {
const isLast = index === timeoutOptions.length - 1;
diff --git a/apps/mobile-app/app/(tabs)/settings/index.tsx b/apps/mobile-app/app/(tabs)/settings/index.tsx
index 8af2eeb4b..e8878dd71 100644
--- a/apps/mobile-app/app/(tabs)/settings/index.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/index.tsx
@@ -133,7 +133,7 @@ export default function SettingsScreen() : React.ReactNode {
const styles = StyleSheet.create({
scrollContent: {
paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? 42 : 0,
+ paddingTop: Platform.OS === 'ios' ? 42 : 16,
},
scrollView: {
flex: 1,
diff --git a/apps/mobile-app/app/(tabs)/settings/ios-autofill.tsx b/apps/mobile-app/app/(tabs)/settings/ios-autofill.tsx
index b5888c469..ba4b15faa 100644
--- a/apps/mobile-app/app/(tabs)/settings/ios-autofill.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/ios-autofill.tsx
@@ -47,12 +47,10 @@ export default function IosAutofillScreen() : React.ReactNode {
fontSize: 16,
fontWeight: '600',
},
- header: {
- paddingTop: 12,
- },
headerText: {
color: colors.textMuted,
fontSize: 13,
+ textAlignVertical: 'top',
},
instructionContainer: {
paddingTop: 16,
@@ -92,11 +90,9 @@ export default function IosAutofillScreen() : React.ReactNode {
return (
<ThemedContainer>
<ThemedScrollView>
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
- You can configure AliasVault to provide native password autofill functionality in iOS. Follow the instructions below to enable it.
- </ThemedText>
- </View>
+ <ThemedText style={styles.headerText}>
+ You can configure AliasVault to provide native password autofill functionality in iOS. Follow the instructions below to enable it.
+ </ThemedText>
<View style={styles.instructionContainer}>
<ThemedText style={styles.instructionTitle}>How to enable:</ThemedText>
diff --git a/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx b/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx
index e2fb98096..7863c067b 100644
--- a/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx
@@ -11,6 +11,7 @@ import { RefreshToken } from '@/utils/types/webapi/RefreshToken';
import { useMinDurationLoading } from '@/hooks/useMinDurationLoading';
import { SkeletonLoader } from '@/components/ui/SkeletonLoader';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
+import { ThemedScrollView } from '@/components/themed/ThemedScrollView';
/**
* Active sessions screen.
*/
@@ -170,8 +171,7 @@ export default function ActiveSessionsScreen() : React.ReactNode {
return (
<ThemedContainer>
- <ScrollView
- contentContainerStyle={styles.contentContainer}
+ <ThemedScrollView
refreshControl={
<RefreshControl
refreshing={isRefreshing}
@@ -181,11 +181,9 @@ export default function ActiveSessionsScreen() : React.ReactNode {
/>
}
>
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
- Below is a list of devices where your account is currently logged in or has an active session. You can log out from any of these sessions here.
- </ThemedText>
- </View>
+ <ThemedText style={styles.headerText}>
+ Below is a list of devices where your account is currently logged in or has an active session. You can log out from any of these sessions here.
+ </ThemedText>
<View style={styles.section}>
{isLoading ? (
<SkeletonLoader count={1} height={100} parts={3} />
@@ -210,7 +208,7 @@ export default function ActiveSessionsScreen() : React.ReactNode {
))
)}
</View>
- </ScrollView>
+ </ThemedScrollView>
</ThemedContainer>
);
}
\ No newline at end of file
diff --git a/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx b/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx
index c66632f27..f589807c6 100644
--- a/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx
@@ -12,6 +12,7 @@ import { AuthLogModel } from '@/utils/types/webapi/AuthLog';
import { useMinDurationLoading } from '@/hooks/useMinDurationLoading';
import { AuthEventType } from '@/utils/types/webapi/AuthEventType';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
+import { ThemedScrollView } from '@/components/themed/ThemedScrollView';
/**
* Auth logs screen.
@@ -183,8 +184,7 @@ export default function AuthLogsScreen() : React.ReactNode {
return (
<ThemedContainer>
- <ScrollView
- contentContainerStyle={styles.contentContainer}
+ <ThemedScrollView
refreshControl={
<RefreshControl
refreshing={isRefreshing}
@@ -194,15 +194,13 @@ export default function AuthLogsScreen() : React.ReactNode {
/>
}
>
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
- Below you can find an overview of recent login attempts to your account.
- </ThemedText>
- </View>
+ <ThemedText style={styles.headerText}>
+ Below you can find an overview of recent login attempts to your account.
+ </ThemedText>
<View style={styles.section}>
{renderContent()}
</View>
- </ScrollView>
+ </ThemedScrollView>
</ThemedContainer>
);
}
\ No newline at end of file
diff --git a/apps/mobile-app/app/(tabs)/settings/security/change-password.tsx b/apps/mobile-app/app/(tabs)/settings/security/change-password.tsx
index 914bd06bd..9e67d887c 100644
--- a/apps/mobile-app/app/(tabs)/settings/security/change-password.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/security/change-password.tsx
@@ -1,6 +1,5 @@
-import { StyleSheet, View, Alert, ScrollView, KeyboardAvoidingView, Platform } from 'react-native';
+import { StyleSheet, View, Alert, KeyboardAvoidingView, Platform } from 'react-native';
import { useState } from 'react';
-import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { router } from 'expo-router';
import { ThemedText } from '@/components/themed/ThemedText';
@@ -12,6 +11,7 @@ import { useVaultMutate } from '@/hooks/useVaultMutate';
import LoadingOverlay from '@/components/LoadingOverlay';
import { UsernameDisplay } from '@/components/ui/UsernameDisplay';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
+import { ThemedScrollView } from '@/components/themed/ThemedScrollView';
/**
* Change password screen.
@@ -19,7 +19,6 @@ import { ThemedContainer } from '@/components/themed/ThemedContainer';
*/
export default function ChangePasswordScreen(): React.ReactNode {
const colors = useColors();
- const insets = useSafeAreaInsets();
const authContext = useAuth();
const { executeVaultPasswordChange, syncStatus } = useVaultMutate();
@@ -33,22 +32,16 @@ export default function ChangePasswordScreen(): React.ReactNode {
button: {
marginTop: 8,
},
- contentContainer: {
- paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? insets.top : 0,
- },
form: {
backgroundColor: colors.accentBackground,
borderRadius: 10,
marginTop: 20,
padding: 16,
},
- header: {
- paddingTop: 12,
- },
headerText: {
color: colors.textMuted,
fontSize: 13,
+ marginBottom: 16,
},
inputContainer: {
marginBottom: 16,
@@ -127,15 +120,10 @@ export default function ChangePasswordScreen(): React.ReactNode {
style={styles.keyboardAvoidingView}
>
<ThemedContainer>
- <ScrollView
- contentContainerStyle={styles.contentContainer}
- keyboardShouldPersistTaps="handled"
- >
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
+ <ThemedScrollView>
+ <ThemedText style={styles.headerText}>
Changing your master password also changes the vault encryption keys. It is advised to periodically change your master password to keep your vaults secure.
- </ThemedText>
- </View>
+ </ThemedText>
<UsernameDisplay />
<View style={styles.form}>
<View style={styles.inputContainer}>
@@ -175,7 +163,7 @@ export default function ChangePasswordScreen(): React.ReactNode {
style={styles.button}
/>
</View>
- </ScrollView>
+ </ThemedScrollView>
</ThemedContainer>
</KeyboardAvoidingView>
</>
diff --git a/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx b/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx
index 61b6698d8..e1f9366ac 100644
--- a/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx
@@ -15,6 +15,7 @@ import { DeleteAccountRequest } from '@/utils/types/webapi/DeleteAccountRequest'
import { UsernameDisplay } from '@/components/ui/UsernameDisplay';
import LoadingOverlay from '@/components/LoadingOverlay';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
+import { ThemedScrollView } from '@/components/themed/ThemedScrollView';
/**
* Delete account screen.
@@ -35,10 +36,6 @@ export default function DeleteAccountScreen(): React.ReactNode {
button: {
marginTop: 16,
},
- contentContainer: {
- paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? insets.top : 0,
- },
form: {
backgroundColor: colors.accentBackground,
borderColor: colors.accentBorder,
@@ -47,12 +44,10 @@ export default function DeleteAccountScreen(): React.ReactNode {
marginTop: 20,
padding: 20,
},
- header: {
- paddingTop: 12,
- },
headerText: {
color: colors.textMuted,
fontSize: 13,
+ marginBottom: 16,
},
inputContainer: {
marginTop: 10,
@@ -233,15 +228,10 @@ export default function DeleteAccountScreen(): React.ReactNode {
style={styles.keyboardAvoidingView}
>
<ThemedContainer>
- <ScrollView
- contentContainerStyle={styles.contentContainer}
- keyboardShouldPersistTaps="handled"
- >
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
- Deleting your account will immediately and permanently delete all of your data.
- </ThemedText>
- </View>
+ <ThemedScrollView>
+ <ThemedText style={styles.headerText}>
+ Deleting your account will immediately and permanently delete all of your data.
+ </ThemedText>
<UsernameDisplay />
<View style={styles.form}>
{step === 'username' ? (
@@ -291,7 +281,7 @@ export default function DeleteAccountScreen(): React.ReactNode {
</>
)}
</View>
- </ScrollView>
+ </ThemedScrollView>
</ThemedContainer>
</KeyboardAvoidingView>
</>
diff --git a/apps/mobile-app/app/(tabs)/settings/security/index.tsx b/apps/mobile-app/app/(tabs)/settings/security/index.tsx
index e78f456a0..7934156f7 100644
--- a/apps/mobile-app/app/(tabs)/settings/security/index.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/security/index.tsx
@@ -1,29 +1,20 @@
-import { StyleSheet, View, TouchableOpacity, Animated, ScrollView, Platform } from 'react-native';
+import { StyleSheet, View, TouchableOpacity } from 'react-native';
import { router } from 'expo-router';
import { Ionicons } from '@expo/vector-icons';
-import { useRef } from 'react';
import { ThemedText } from '@/components/themed/ThemedText';
import { useColors } from '@/hooks/useColorScheme';
import { SettingsHeader } from '@/components/ui/SettingsHeader';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
+import { ThemedScrollView } from '@/components/themed/ThemedScrollView';
/**
* Security settings screen.
*/
export default function SecuritySettingsScreen() : React.ReactNode {
const colors = useColors();
- const scrollY = useRef(new Animated.Value(0)).current;
- const scrollViewRef = useRef<ScrollView>(null);
const styles = StyleSheet.create({
- scrollContent: {
- paddingBottom: 40,
- paddingTop: Platform.OS === 'ios' ? 42 : 0,
- },
- scrollView: {
- flex: 1,
- },
section: {
backgroundColor: colors.accentBackground,
borderRadius: 10,
@@ -64,17 +55,7 @@ export default function SecuritySettingsScreen() : React.ReactNode {
return (
<ThemedContainer>
- <Animated.ScrollView
- ref={scrollViewRef}
- onScroll={Animated.event(
- [{ nativeEvent: { contentOffset: { y: scrollY } } }],
- { useNativeDriver: true }
- )}
- scrollEventThrottle={16}
- contentContainerStyle={styles.scrollContent}
- scrollIndicatorInsets={{ bottom: 40 }}
- style={styles.scrollView}
- >
+ <ThemedScrollView>
<SettingsHeader title="Security" description="Manage your account and vault security settings." icon="shield-checkmark" />
<View style={styles.section}>
<TouchableOpacity
@@ -132,7 +113,7 @@ export default function SecuritySettingsScreen() : React.ReactNode {
</View>
</TouchableOpacity>
</View>
- </Animated.ScrollView>
+ </ThemedScrollView>
</ThemedContainer>
);
}
\ No newline at end of file
diff --git a/apps/mobile-app/app/(tabs)/settings/vault-unlock.tsx b/apps/mobile-app/app/(tabs)/settings/vault-unlock.tsx
index 5c1552c78..a8c0e1f8e 100644
--- a/apps/mobile-app/app/(tabs)/settings/vault-unlock.tsx
+++ b/apps/mobile-app/app/(tabs)/settings/vault-unlock.tsx
@@ -138,9 +138,6 @@ export default function VaultUnlockSettingsScreen() : React.ReactNode {
color: colors.textMuted,
opacity: 0.5,
},
- header: {
- paddingTop: 12,
- },
headerText: {
color: colors.textMuted,
fontSize: 13,
@@ -179,11 +176,9 @@ export default function VaultUnlockSettingsScreen() : React.ReactNode {
return (
<ThemedContainer>
<ThemedScrollView>
- <View style={styles.header}>
- <ThemedText style={styles.headerText}>
- Choose how you want to unlock your vault.
- </ThemedText>
- </View>
+ <ThemedText style={styles.headerText}>
+ Choose how you want to unlock your vault.
+ </ThemedText>
<View style={styles.optionContainer}>
<TouchableOpacity
diff --git a/apps/mobile-app/app/login.tsx b/apps/mobile-app/app/login.tsx
index 43a29ed7e..c4f34aa65 100644
--- a/apps/mobile-app/app/login.tsx
+++ b/apps/mobile-app/app/login.tsx
@@ -471,7 +471,6 @@ export default function LoginScreen() : React.ReactNode {
contentContainerStyle={styles.scrollContent}
keyboardShouldPersistTaps="handled"
>
-
<SafeAreaView>
<LinearGradient
colors={[colors.loginHeader, colors.background]}
diff --git a/apps/mobile-app/components/themed/ThemedScrollView.tsx b/apps/mobile-app/components/themed/ThemedScrollView.tsx
index 9db33833a..46bc2d092 100644
--- a/apps/mobile-app/components/themed/ThemedScrollView.tsx
+++ b/apps/mobile-app/components/themed/ThemedScrollView.tsx
@@ -1,7 +1,7 @@
-import { Platform, ScrollView, StyleProp, StyleSheet, ViewStyle } from 'react-native';
+import { Platform, ScrollView, StyleProp, StyleSheet, ViewStyle, ScrollViewProps } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
-type ThemedScrollViewProps = {
+type ThemedScrollViewProps = ScrollViewProps & {
style?: StyleProp<ViewStyle>;
lightColor?: string;
darkColor?: string;
@@ -13,17 +13,24 @@ type ThemedScrollViewProps = {
/**
* Themed scroll view component.
*/
-export function ThemedScrollView({ style, lightColor, darkColor, ...otherProps }: ThemedScrollViewProps): React.ReactNode {
+export function ThemedScrollView({
+ style,
+ lightColor,
+ darkColor,
+ keyboardShouldPersistTaps = 'handled',
+ ...otherProps
+}: ThemedScrollViewProps): React.ReactNode {
const insets = useSafeAreaInsets();
- const paddingTop = Platform.OS === 'ios' ? insets.top : 0;
- const paddingBottom = Platform.OS === 'ios' ? insets.bottom + 60 : 0;
+ const paddingTop = Platform.OS === 'ios' ? 56 : 16;
+ const paddingBottom = Platform.OS === 'ios' ? insets.bottom + 60 : 40;
return (
<ScrollView
style={[styles.container, { paddingTop: paddingTop }, style]}
contentContainerStyle={{ paddingBottom: paddingBottom }}
scrollIndicatorInsets={{ bottom: paddingBottom }}
+ keyboardShouldPersistTaps={keyboardShouldPersistTaps}
{...otherProps}
/>
);
diff --git a/apps/mobile-app/components/ui/SettingsHeader.tsx b/apps/mobile-app/components/ui/SettingsHeader.tsx
index 350868253..9c72ea85d 100644
--- a/apps/mobile-app/components/ui/SettingsHeader.tsx
+++ b/apps/mobile-app/components/ui/SettingsHeader.tsx
@@ -26,7 +26,6 @@ export function SettingsHeader({ title, description, icon }: SettingsHeaderProps
container: {
backgroundColor: colors.accentBackground,
borderRadius: 10,
- marginTop: 20,
paddingBottom: 16,
paddingHorizontal: 16,
paddingTop: 20,
diff --git a/apps/mobile-app/components/ui/TitleContainer.tsx b/apps/mobile-app/components/ui/TitleContainer.tsx
index cc2b28ec5..d5e0ff98b 100644
--- a/apps/mobile-app/components/ui/TitleContainer.tsx
+++ b/apps/mobile-app/components/ui/TitleContainer.tsx
@@ -16,9 +16,9 @@ export function TitleContainer({ title, showLogo = true }: TitleContainerProps):
// On Android, we don't show the title container as the native header is used, so we only return the offline banner.
if (Platform.OS === 'android') {
return (
- <View style={styles.titleContainer}>
+ <>
<OfflineBanner />
- </View>
+ </>
);
}
diff --git a/apps/mobile-app/components/ui/UsernameDisplay.tsx b/apps/mobile-app/components/ui/UsernameDisplay.tsx
index 284a0a6f6..57bad5342 100644
--- a/apps/mobile-app/components/ui/UsernameDisplay.tsx
+++ b/apps/mobile-app/components/ui/UsernameDisplay.tsx
@@ -13,12 +13,6 @@ export function UsernameDisplay(): React.ReactNode {
const { username } = useAuth();
const styles = StyleSheet.create({
- avatar: {
- borderRadius: 20,
- height: 40,
- marginRight: 12,
- width: 40,
- },
avatar: {
borderRadius: 20,
height: 40,
@@ -30,7 +24,6 @@ export function UsernameDisplay(): React.ReactNode {
backgroundColor: colors.background,
borderRadius: 10,
flexDirection: 'row',
- marginTop: 10,
},
usernameText: {
color: colors.text,