diff --git a/apps/mobile-app/components/credentials/CredentialCard.tsx b/apps/mobile-app/components/credentials/CredentialCard.tsx index 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 }: CredentialCar case '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 }: CredentialCar title="Credential Options" actions={getMenuActions()} onPress={handleContextMenuAction} + previewBackgroundColor={colors.accentBackground} > { + // Ignore long press to prevent context menu long press from triggering the credential card press. + }} activeOpacity={0.7} >