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() >