Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add rounded tables to web app and admin (#1598)

Leendert de Borsteaedb38b39c8
diff --git a/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts b/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts
index 8d2d9d286..879d78e5b 100644
--- a/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts
+++ b/apps/browser-extension/src/entrypoints/background/ClipboardClearHandler.ts
@@ -1,7 +1,6 @@
import { sendMessage } from 'webext-bridge/background';
-import { storage } from 'wxt/utils/storage';
-import { CLIPBOARD_CLEAR_TIMEOUT_KEY } from '@/utils/Constants';
+import { LocalPreferencesService } from '@/utils/LocalPreferencesService';
let clipboardClearTimer: NodeJS.Timeout | null = null;
let countdownInterval: NodeJS.Timeout | null = null;
@@ -82,7 +81,7 @@ async function clearClipboardContent(): Promise<void> {
* Handle clipboard copied event - starts countdown and timer to clear clipboard.
*/
export async function handleClipboardCopied() : Promise<void> {
- const timeout = await storage.getItem(CLIPBOARD_CLEAR_TIMEOUT_KEY) as number ?? 10;
+ const timeout = await LocalPreferencesService.getClipboardClearTimeout();
// Clear any existing timer
if (clipboardClearTimer) {
@@ -186,15 +185,14 @@ export function handleCancelClipboardClear(): void {
* Get the clipboard clear timeout setting.
*/
export async function handleGetClipboardClearTimeout(): Promise<number> {
- const timeout = await storage.getItem(CLIPBOARD_CLEAR_TIMEOUT_KEY) as number ?? 10;
- return timeout;
+ return LocalPreferencesService.getClipboardClearTimeout();
}
/**
* Set the clipboard clear timeout setting.
*/
export async function handleSetClipboardClearTimeout(data: number): Promise<boolean> {
- await storage.setItem(CLIPBOARD_CLEAR_TIMEOUT_KEY, data);
+ await LocalPreferencesService.setClipboardClearTimeout(data);
return true;
}
diff --git a/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css b/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css
index 3e97c76c5..437c1a72c 100644
--- a/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css
+++ b/apps/server/AliasVault.Admin/wwwroot/css/tailwind.css
@@ -1032,6 +1032,10 @@ video {
grid-template-columns: repeat(7, minmax(0, 1fr));
}
+.flex-row {
+ flex-direction: row;
+}
+
.flex-col {
flex-direction: column;
}
@@ -1987,6 +1991,11 @@ video {
color: rgb(37 99 235 / var(--tw-text-opacity));
}
+.hover\:text-blue-900:hover {
+ --tw-text-opacity: 1;
+ color: rgb(30 58 138 / var(--tw-text-opacity));
+}
+
.hover\:text-gray-700:hover {
--tw-text-opacity: 1;
color: rgb(55 65 81 / var(--tw-text-opacity));
@@ -2289,6 +2298,11 @@ video {
color: rgb(156 163 175 / var(--tw-text-opacity));
}
+.dark\:text-gray-500:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(107 114 128 / var(--tw-text-opacity));
+}
+
.dark\:text-gray-600:is(.dark *) {
--tw-text-opacity: 1;
color: rgb(75 85 99 / var(--tw-text-opacity));
@@ -2410,6 +2424,11 @@ video {
background-color: rgb(185 28 28 / var(--tw-bg-opacity));
}
+.dark\:hover\:text-blue-300:hover:is(.dark *) {
+ --tw-text-opacity: 1;
+ color: rgb(147 197 253 / var(--tw-text-opacity));
+}
+
.dark\:hover\:text-blue-400:hover:is(.dark *) {
--tw-text-opacity: 1;
color: rgb(96 165 250 / var(--tw-text-opacity));
@@ -2529,14 +2548,6 @@ video {
flex-direction: row;
}
- .sm\:items-center {
- align-items: center;
- }
-
- .sm\:justify-between {
- justify-content: space-between;
- }
-
.sm\:gap-6 {
gap: 1.5rem;
}
diff --git a/apps/server/Shared/AliasVault.RazorComponents/Tables/SortableTable.razor b/apps/server/Shared/AliasVault.RazorComponents/Tables/SortableTable.razor
index b9aeadc7a..e9da25b53 100644
--- a/apps/server/Shared/AliasVault.RazorComponents/Tables/SortableTable.razor
+++ b/apps/server/Shared/AliasVault.RazorComponents/Tables/SortableTable.razor
@@ -1,4 +1,5 @@
-<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400 shadow rounded border dark:border-gray-700">
+<div class="rounded-lg border border-gray-200 dark:border-gray-700 shadow-sm overflow-hidden">
+<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead class="text-xs text-gray-700 bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr>
@foreach (var column in Columns)
@@ -39,6 +40,7 @@
@ChildContent
</tbody>
</table>
+</div>
@code {
/// <summary>