From 19f6e11601f52b7d7d8dbf248f45204977aa7ee9 Mon Sep 17 00:00:00 2001 From: spinline Date: Sun, 1 Feb 2026 17:08:23 +0300 Subject: [PATCH] fix(ui): remove outline, fix mobile context menu close, and improve pwa viewport --- frontend/index.html | 3 ++- frontend/input.css | 10 ++++++++++ frontend/public/tailwind.css | 7 +++++++ frontend/src/components/context_menu.rs | 1 - 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 88844fa..676852c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,8 @@ - + VibeTorrent diff --git a/frontend/input.css b/frontend/input.css index 81595b8..4f9689e 100644 --- a/frontend/input.css +++ b/frontend/input.css @@ -15,4 +15,14 @@ body { cursor: pointer; } +} + +/* Remove default focus outline/tap highlight */ +* { + -webkit-tap-highlight-color: transparent; + outline: none !important; +} + +:focus { + outline: none !important; } \ No newline at end of file diff --git a/frontend/public/tailwind.css b/frontend/public/tailwind.css index 943d5fd..f595080 100644 --- a/frontend/public/tailwind.css +++ b/frontend/public/tailwind.css @@ -2401,6 +2401,13 @@ cursor: pointer; } } +* { + -webkit-tap-highlight-color: transparent; + outline: none !important; +} +:focus { + outline: none !important; +} @layer base { :where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme=light] { color-scheme: light; diff --git a/frontend/src/components/context_menu.rs b/frontend/src/components/context_menu.rs index 0d071bc..9bb7b07 100644 --- a/frontend/src/components/context_menu.rs +++ b/frontend/src/components/context_menu.rs @@ -28,7 +28,6 @@ pub fn ContextMenu( role="button" tabindex="-1" on:click=move |_| on_close.call(()) - on:touchstart=move |_| on_close.call(()) on:contextmenu=move |e| e.prevent_default() >