Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update TOTP style and icon (#1404)
Leendert de Borstecd7f78c9322
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsx b/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsxindex 31608b503..375e9119c 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Items/ItemCard.tsx@@ -115,16 +115,11 @@ const ItemCard: React.FC<ItemCardProps> = ({ item, showFolderPath = false }) =>{item.HasTotp && (<svgclassName="w-3.5 h-3.5 text-gray-500 dark:text-gray-400"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth="2"- strokeLinecap="round"- strokeLinejoin="round"+ viewBox="0 -960 960 960"+ fill="currentColor"aria-label="Has 2FA">- <circle cx="12" cy="12" r="10" />- <polyline points="12 6 12 12 16 14" />+ <path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm100-200h46v-240h-36l-70 50 24 36 36-26v180Zm124 0h156v-40h-94l-2-2q21-20 34.5-34t21.5-22q18-18 27-36t9-38q0-29-22-48.5T458-600q-26 0-47 15t-29 39l40 16q5-13 14.5-20.5T458-558q15 0 24.5 8t9.5 20q0 11-4 20.5T470-486l-32 32-54 54v40Zm296 0q36 0 58-20t22-52q0-18-10-32t-28-22v-2q14-8 22-20.5t8-29.5q0-27-21-44.5T678-600q-25 0-46.5 14.5T604-550l40 16q4-12 13-19t21-7q13 0 21.5 7.5T708-534q0 14-10 22t-26 8h-18v40h20q20 0 31 8t11 22q0 13-11 22.5t-25 9.5q-17 0-26-7.5T638-436l-40 16q7 29 28.5 44.5T680-360ZM160-240h640v-480H160v480Zm0 0v-480 480Z"/></svg>)}</div>diff --git a/apps/mobile-app/components/items/ItemCard.tsx b/apps/mobile-app/components/items/ItemCard.tsxindex 8ac784162..3659cdfd6 100644--- a/apps/mobile-app/components/items/ItemCard.tsx+++ b/apps/mobile-app/components/items/ItemCard.tsx@@ -313,7 +313,7 @@ export function ItemCard({ item, onItemDelete }: ItemCardProps): React.ReactNode)}{item.HasTotp && (<MaterialIcons- name="schedule"+ name="pin"size={14}color={colors.textMuted}style={styles.iconStyle}diff --git a/apps/mobile-app/components/items/details/TotpEditor.tsx b/apps/mobile-app/components/items/details/TotpEditor.tsxindex 589096fef..63bc005b5 100644--- a/apps/mobile-app/components/items/details/TotpEditor.tsx+++ b/apps/mobile-app/components/items/details/TotpEditor.tsx@@ -326,9 +326,6 @@ export const TotpEditor: React.FC<TotpEditorProps> = ({return (<View><View style={styles.header}>- <ThemedText style={styles.sectionTitle}>- {t('common.twoFactorAuthentication')}- </ThemedText>{hasActiveTotpCodes && (<TouchableOpacitystyle={styles.addButtonCompact}diff --git a/apps/mobile-app/components/items/details/TotpSection.tsx b/apps/mobile-app/components/items/details/TotpSection.tsxindex 7b46225f1..9db161d61 100644--- a/apps/mobile-app/components/items/details/TotpSection.tsx+++ b/apps/mobile-app/components/items/details/TotpSection.tsx@@ -194,7 +194,7 @@ export const TotpSection: React.FC<TotpSectionProps> = ({ item }) : React.ReactNreturn (<ThemedView style={styles.container}><ThemedText type="subtitle">- {t('credentials.twoFactorAuth')}+ {t('common.twoFactorAuthentication')}</ThemedText>{totpCodes.map(totpCode => (<TouchableOpacitydiff --git a/apps/mobile-app/i18n/locales/en.json b/apps/mobile-app/i18n/locales/en.jsonindex 65edf0b42..26b46ad1a 100644--- a/apps/mobile-app/i18n/locales/en.json+++ b/apps/mobile-app/i18n/locales/en.json@@ -20,7 +20,7 @@"notice": "Notice","enabled": "Enabled","disabled": "Disabled",- "twoFactorAuthentication": "Two-Factor Authentication",+ "twoFactorAuthentication": "Two-factor authentication","add": "Add","attachments": "Attachments","deleteItemConfirmTitle": "Delete Item",@@ -169,7 +169,6 @@"userpass": "Passwords","attachments": "Attachments"},- "twoFactorAuth": "Two-factor authentication","totpCode": "TOTP Code","attachments": "Attachments","deleteAttachment": "Delete",@@ -566,7 +565,6 @@"userpass": "Passwords","attachments": "Attachments"},- "twoFactorAuth": "Two-factor authentication","totpCode": "TOTP Code","attachments": "Attachments","deleteAttachment": "Delete",diff --git a/apps/server/AliasVault.Client/Main/Components/Items/ItemCard.razor b/apps/server/AliasVault.Client/Main/Components/Items/ItemCard.razorindex d0c3f7e86..4df3dce8f 100644--- a/apps/server/AliasVault.Client/Main/Components/Items/ItemCard.razor+++ b/apps/server/AliasVault.Client/Main/Components/Items/ItemCard.razor@@ -18,9 +18,8 @@<div class="text-gray-900 dark:text-gray-100 break-words truncate max-w-[150px]" title="@GetServiceName()">@GetServiceName()</div>@if (Obj.HasTotp){- <svg class="w-3.5 h-3.5 text-gray-500 dark:text-gray-400 flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-label="Has TOTP">- <circle cx="12" cy="12" r="10"/>- <polyline points="12 6 12 12 16 14"/>+ <svg class="w-3.5 h-3.5 text-gray-500 dark:text-gray-400 flex-shrink-0" viewBox="0 -960 960 960" fill="currentColor" aria-label="Has TOTP">+ <path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm100-200h46v-240h-36l-70 50 24 36 36-26v180Zm124 0h156v-40h-94l-2-2q21-20 34.5-34t21.5-22q18-18 27-36t9-38q0-29-22-48.5T458-600q-26 0-47 15t-29 39l40 16q5-13 14.5-20.5T458-558q15 0 24.5 8t9.5 20q0 11-4 20.5T470-486l-32 32-54 54v40Zm296 0q36 0 58-20t22-52q0-18-10-32t-28-22v-2q14-8 22-20.5t8-29.5q0-27-21-44.5T678-600q-25 0-46.5 14.5T604-550l40 16q4-12 13-19t21-7q13 0 21.5 7.5T708-534q0 14-10 22t-26 8h-18v40h20q20 0 31 8t11 22q0 13-11 22.5t-25 9.5q-17 0-26-7.5T638-436l-40 16q7 29 28.5 44.5T680-360ZM160-240h640v-480H160v480Zm0 0v-480 480Z"/></svg>}@if (Obj.HasPasskey)