Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update CredentialCard.tsx (#882)
Leendert de Borsta1d2bcbe3b20
diff --git a/apps/mobile-app/components/credentials/CredentialCard.tsx b/apps/mobile-app/components/credentials/CredentialCard.tsxindex e61866446..6da666da9 100644--- a/apps/mobile-app/components/credentials/CredentialCard.tsx+++ b/apps/mobile-app/components/credentials/CredentialCard.tsx@@ -97,31 +97,37 @@ export function CredentialCard({ credential, onCredentialDelete }: CredentialCarcase 'Copy Username':if (credential.Username) {Clipboard.setStringAsync(credential.Username);- Toast.show({- type: 'success',- text1: 'Username copied to clipboard',- position: 'bottom',- });+ if (Platform.OS === 'ios') {+ Toast.show({+ type: 'success',+ text1: 'Username copied to clipboard',+ position: 'bottom',+ });+ }}break;case 'Copy Email':if (credential.Alias?.Email) {Clipboard.setStringAsync(credential.Alias.Email);- Toast.show({- type: 'success',- text1: 'Email copied to clipboard',- position: 'bottom',- });+ if (Platform.OS === 'ios') {+ Toast.show({+ type: 'success',+ text1: 'Email copied to clipboard',+ position: 'bottom',+ });+ }}break;case 'Copy Password':if (credential.Password) {Clipboard.setStringAsync(credential.Password);- Toast.show({- type: 'success',- text1: 'Password copied to clipboard',- position: 'bottom',- });+ if (Platform.OS === 'ios') {+ Toast.show({+ type: 'success',+ text1: 'Password copied to clipboard',+ position: 'bottom',+ });+ }}break;}@@ -224,6 +230,7 @@ export function CredentialCard({ credential, onCredentialDelete }: CredentialCartitle="Credential Options"actions={getMenuActions()}onPress={handleContextMenuAction}+ previewBackgroundColor={colors.accentBackground}><TouchableOpacitystyle={styles.credentialCard}@@ -231,6 +238,9 @@ export function CredentialCard({ credential, onCredentialDelete }: CredentialCarKeyboard.dismiss();router.push(`/(tabs)/credentials/${credential.Id}`);}}+ onLongPress={() => {+ // Ignore long press to prevent context menu long press from triggering the credential card press.+ }}activeOpacity={0.7}><View style={styles.credentialContent}>