From 100d1de04cc898cb2e63c72f4d1e6b67ed89faa7 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 24 Apr 2026 01:56:30 +0200 Subject: [PATCH] Remove some global reset styles in favor of explicit border colors, restore button cursors --- daemon/web/src/app.css | 14 ++++------ .../web/src/lib/components/ConfigForm.svelte | 26 +++++++++---------- .../src/lib/components/ManifestCard.svelte | 2 +- .../lib/components/ManifestTableRow.svelte | 4 +-- .../lib/components/SystemStatsTable.svelte | 12 ++++----- 5 files changed, 27 insertions(+), 31 deletions(-) diff --git a/daemon/web/src/app.css b/daemon/web/src/app.css index 803cb3f..e3d466c 100644 --- a/daemon/web/src/app.css +++ b/daemon/web/src/app.css @@ -6,15 +6,11 @@ --color-rayhunter-green: #94ea18; } -/* Preserve Tailwind v3's default border / divide color (gray-200) so the - * v4 upgrade does not visually change every bare `border` / `divide-x` in - * the codebase. Without this, those utilities use `currentColor` in v4. */ +/* v4 dropped the v3 preflight rule that set `cursor: pointer` on buttons. + * Restore it so enabled buttons get the pointer cursor. */ @layer base { - *, - ::after, - ::before, - ::backdrop, - ::file-selector-button { - border-color: var(--color-gray-200, currentColor); + button:not(:disabled), + [role='button']:not(:disabled) { + cursor: pointer; } } diff --git a/daemon/web/src/lib/components/ConfigForm.svelte b/daemon/web/src/lib/components/ConfigForm.svelte index dc23090..1facbc1 100644 --- a/daemon/web/src/lib/components/ConfigForm.svelte +++ b/daemon/web/src/lib/components/ConfigForm.svelte @@ -210,7 +210,7 @@ -
+

Notification Settings

-
+

Storage Management

@@ -346,7 +346,7 @@
{#if config.device === 'orbic' || config.device === 'moxee' || config.device === 'tmobile' || config.device === 'wingtech'} -
+

WiFi Client Mode

Connect the device to an existing WiFi network for internet access (e.g. @@ -359,7 +359,7 @@ id="wifi_enabled" type="checkbox" bind:checked={config.wifi_enabled} - class="h-4 w-4 text-rayhunter-blue focus:ring-rayhunter-blue border-gray-300 rounded" + class="h-4 w-4 text-rayhunter-blue focus:ring-rayhunter-blue border-gray-300 rounded-sm" />

{/if} -
+

Device Security

@@ -508,7 +508,7 @@ id="firewall_restrict_outbound" type="checkbox" bind:checked={config.firewall_restrict_outbound} - class="h-4 w-4 text-rayhunter-blue focus:ring-rayhunter-blue border-gray-300 rounded" + class="h-4 w-4 text-rayhunter-blue focus:ring-rayhunter-blue border-gray-300 rounded-sm" />
-
+

Analyzer Heuristic Settings

diff --git a/daemon/web/src/lib/components/ManifestCard.svelte b/daemon/web/src/lib/components/ManifestCard.svelte index 35a1ba4..1b5d084 100644 --- a/daemon/web/src/lib/components/ManifestCard.svelte +++ b/daemon/web/src/lib/components/ManifestCard.svelte @@ -100,7 +100,7 @@ /> {/if}
-
+
diff --git a/daemon/web/src/lib/components/ManifestTableRow.svelte b/daemon/web/src/lib/components/ManifestTableRow.svelte index 8976111..eab9639 100644 --- a/daemon/web/src/lib/components/ManifestTableRow.svelte +++ b/daemon/web/src/lib/components/ManifestTableRow.svelte @@ -65,8 +65,8 @@ {/if} - - + + diff --git a/daemon/web/src/lib/components/SystemStatsTable.svelte b/daemon/web/src/lib/components/SystemStatsTable.svelte index f655857..9a634a2 100644 --- a/daemon/web/src/lib/components/SystemStatsTable.svelte +++ b/daemon/web/src/lib/components/SystemStatsTable.svelte @@ -6,7 +6,7 @@ stats: SystemStats; } = $props(); - const table_cell_classes = 'border p-1 lg:p-2'; + const table_cell_classes = 'border border-gray-200 p-1 lg:p-2'; let battery_level = $derived(stats.battery_status ? stats.battery_status.level : 0); let bar_color = $derived.by(() => { @@ -39,26 +39,26 @@ class="flex-1 drop-shadow-sm p-4 flex flex-col gap-2 border rounded-md bg-gray-100 border-gray-100" >

System Information

- +
- + - + - + - +
Rayhunter Version {stats.runtime_metadata.rayhunter_version}
Storage {stats.disk_stats.used_percent} used ({stats.disk_stats.used_size} used / {stats .disk_stats.available_size} available)
Memory (RAM) Free: {stats.memory_stats.free}, Used: {stats.memory_stats.used}
Battery