Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update email domain active entry styling (#1129)
Leendert de Borst666b3ccada78
diff --git a/apps/browser-extension/src/entrypoints/popup/components/EmailDomainField.tsx b/apps/browser-extension/src/entrypoints/popup/components/EmailDomainField.tsxindex be4626b1c..de01ee1cf 100644--- a/apps/browser-extension/src/entrypoints/popup/components/EmailDomainField.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/EmailDomainField.tsx@@ -220,7 +220,11 @@ const EmailDomainField: React.FC<EmailDomainFieldProps> = ({key={domain}type="button"onClick={() => selectDomain(domain)}- className="px-3 py-1.5 text-sm bg-primary-100 dark:bg-primary-900 text-primary-700 dark:text-primary-300 rounded-md hover:bg-primary-200 dark:hover:bg-primary-800 transition-colors"+ className={`px-3 py-1.5 text-sm rounded-md transition-colors ${+ selectedDomain === domain+ ? 'bg-primary-600 text-white hover:bg-primary-700'+ : 'bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-600 border border-gray-300 dark:border-gray-600'+ }`}>{domain}</button>@@ -242,7 +246,11 @@ const EmailDomainField: React.FC<EmailDomainFieldProps> = ({key={domain}type="button"onClick={() => selectDomain(domain)}- className="px-3 py-1.5 text-sm bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-md hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors"+ className={`px-3 py-1.5 text-sm rounded-md transition-colors ${+ selectedDomain === domain+ ? 'bg-primary-600 text-white hover:bg-primary-700'+ : 'bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-600 border border-gray-300 dark:border-gray-600'+ }`}>{domain}</button>diff --git a/apps/server/AliasVault.Client/Main/Components/Forms/EditEmailFormRow.razor b/apps/server/AliasVault.Client/Main/Components/Forms/EditEmailFormRow.razorindex 2cee6699b..92513e40a 100644--- a/apps/server/AliasVault.Client/Main/Components/Forms/EditEmailFormRow.razor+++ b/apps/server/AliasVault.Client/Main/Components/Forms/EditEmailFormRow.razor@@ -45,7 +45,7 @@<p class="text-sm text-gray-500 dark:text-gray-400">@Localizer["PrivateEmailDescription"]</p>@foreach (var domain in PrivateDomains){- <button class="mt-2 px-4 py-2 bg-primary-300 text-gray-700 rounded hover:bg-primary-400 focus:outline-none focus:ring-2 focus:ring-gray-400 mr-2" @onclick="() => SelectDomain(domain)">+ <button class="mt-2 px-4 py-2 @(SelectedDomain == domain ? "bg-primary-600 text-white hover:bg-primary-700" : "bg-gray-200 text-gray-700 hover:bg-gray-300 border border-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600 dark:border-gray-600") rounded focus:outline-none focus:ring-2 focus:ring-gray-400 mr-2" @onclick="() => SelectDomain(domain)">@domain</button>}@@ -56,7 +56,7 @@<p class="text-sm text-gray-500 dark:text-gray-400">@Localizer["PublicEmailDescription"]</p>@foreach (var domain in PublicDomains){- <button class="mt-2 px-4 py-2 bg-gray-200 text-gray-700 rounded hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-gray-400 mr-2" @onclick="() => SelectDomain(domain)">+ <button class="mt-2 px-4 py-2 @(SelectedDomain == domain ? "bg-primary-600 text-white hover:bg-primary-700" : "bg-gray-200 text-gray-700 hover:bg-gray-300 border border-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600 dark:border-gray-600") rounded focus:outline-none focus:ring-2 focus:ring-gray-400 mr-2" @onclick="() => SelectDomain(domain)">@domain</button>}@@ -177,6 +177,7 @@{// Remove the '@' symbol and everything after if it exists.LocalPart = LocalPart.Contains('@') ? LocalPart.Split('@')[0] : LocalPart;+ SelectedDomain = domain;Value = $"{LocalPart}@{domain}";await ValueChanged.InvokeAsync(Value);IsCustomDomain = false;diff --git a/apps/server/AliasVault.Client/Resources/Pages/Main/Settings/General.en.resx b/apps/server/AliasVault.Client/Resources/Pages/Main/Settings/General.en.resxindex c3f69e880..8d69680ad 100644--- a/apps/server/AliasVault.Client/Resources/Pages/Main/Settings/General.en.resx+++ b/apps/server/AliasVault.Client/Resources/Pages/Main/Settings/General.en.resx@@ -144,7 +144,7 @@<comment>Label for note/warning text</comment></data><data name="ClipboardClearLimitationNote">- <value>Clearing clipboard in the web app is only possible when the tab is active. When tab loses focus, it will clear clipboard when it comes into focus again.</value>+ <value>Note: clearing the clipboard in the web app is only possible when the tab is active. If the tab loses focus, the clipboard will be cleared when it comes back into focus.</value><comment>Note explaining limitations of clipboard clearing feature</comment></data>