Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update UI tab switchers to be consistent (#776)
Leendert de Borst9ebc139dbbc7
diff --git a/apps/browser-extension/src/entrypoints/contentScript/Popup.ts b/apps/browser-extension/src/entrypoints/contentScript/Popup.tsindex cb224341d..39690216b 100644--- a/apps/browser-extension/src/entrypoints/contentScript/Popup.ts+++ b/apps/browser-extension/src/entrypoints/contentScript/Popup.ts@@ -1431,10 +1431,7 @@ async function createPasskeySection(rootContainer: HTMLElement): Promise<{ hint:*/const hint = document.createElement('div');hint.className = 'av-passkey-hint';- hint.appendChild(createPasskeyBadgeIcon());- const hintText = document.createElement('span');- hintText.textContent = await t('content.loginWithPasskey');- hint.appendChild(hintText);+ hint.textContent = await t('content.loginWithPasskey');/** Reuse the credential-list scroll styling but cap the height so at most ~3 passkeys arediff --git a/apps/browser-extension/src/entrypoints/contentScript/style.css b/apps/browser-extension/src/entrypoints/contentScript/style.cssindex 2df98e526..26f3fcc56 100644--- a/apps/browser-extension/src/entrypoints/contentScript/style.css+++ b/apps/browser-extension/src/entrypoints/contentScript/style.css@@ -167,14 +167,10 @@ body {}.av-passkey-hint {- display: flex;- align-items: center;- gap: 6px;- padding: 10px 16px 10px 16px;- font-size: 12px;+ padding: 10px 16px 6px 16px;+ font-size: 13px;color: #9ca3af;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;- border-bottom: 1px solid #374151;}.av-passkey-list {@@ -191,6 +187,9 @@ body {min-width: 0;padding: 14px 12px;border: none;+ /* Transparent underline that becomes the active indicator; -1px margin overlaps the nav border. */+ border-bottom: 2px solid transparent;+ margin-bottom: -1px;border-radius: 0;background: transparent;color: #9ca3af;@@ -201,7 +200,7 @@ body {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;- transition: background-color 0.2s ease, color 0.2s ease;+ transition: border-color 0.2s ease, color 0.2s ease;}.av-pill:hover {@@ -210,7 +209,7 @@ body {.av-pill-active,.av-pill-active:hover {- background-color: #2a3340;+ border-bottom-color: #f49541;color: #f49541;}diff --git a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsxindex 1a0a123eb..0bd5e4dd4 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Dialogs/PasswordConfigDialog.tsx@@ -175,28 +175,30 @@ const PasswordConfigDialog: React.FC<IPasswordConfigDialogProps> = ({</div>}>- <div className="space-y-4">- {/* Mode Tabs: Basic | Diceware */}- <div className="grid grid-cols-2 gap-1 rounded-lg bg-gray-100 p-1 dark:bg-gray-700">- {(['basic', 'diceware'] as PasswordGeneratorType[]).map((mode) => {- const isActive = (settings.Type ?? 'basic') === mode;- return (- <button- key={mode}- type="button"- onClick={() => handleSettingChange('Type', mode)}- className={`px-3 py-2 rounded-md text-sm font-medium transition-colors ${- isActive- ? 'bg-primary-600 text-white shadow-sm'- : 'text-gray-700 hover:bg-gray-200 dark:text-gray-300 dark:hover:bg-gray-600'- }`}- >- {mode === 'basic' ? t('items.passwordTypeBasic') : t('items.passwordTypeDiceware')}- </button>- );- })}- </div>+ {/*+ Type switcher (Basic | Diceware).+ */}+ <div className="-mx-6 -mt-4 mb-4 flex border-b border-gray-200 dark:border-gray-700">+ {(['basic', 'diceware'] as PasswordGeneratorType[]).map((mode) => {+ const isActive = (settings.Type ?? 'basic') === mode;+ return (+ <button+ key={mode}+ type="button"+ onClick={() => handleSettingChange('Type', mode)}+ className={`-mb-px flex-1 border-b-2 px-3 py-3 text-sm font-medium transition-colors ${+ isActive+ ? 'border-primary-600 text-primary-600 dark:border-primary-500 dark:text-primary-500'+ : 'border-transparent text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'+ }`}+ >+ {mode === 'basic' ? t('items.passwordTypeBasic') : t('items.passwordTypeDiceware')}+ </button>+ );+ })}+ </div>+ <div className="space-y-4">{/* Password Preview */}<div><div className="flex items-center gap-2">