fix(ui): remove outline, fix mobile context menu close, and improve pwa viewport

This commit is contained in:
spinline
2026-02-01 17:08:23 +03:00
parent 4fa325f4f3
commit 19f6e11601
4 changed files with 19 additions and 2 deletions

View File

@@ -3,7 +3,8 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> <meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<title>VibeTorrent</title> <title>VibeTorrent</title>
<!-- PWA & Mobile Capable --> <!-- PWA & Mobile Capable -->

View File

@@ -15,4 +15,14 @@
body { body {
cursor: pointer; cursor: pointer;
} }
}
/* Remove default focus outline/tap highlight */
* {
-webkit-tap-highlight-color: transparent;
outline: none !important;
}
:focus {
outline: none !important;
} }

View File

@@ -2401,6 +2401,13 @@
cursor: pointer; cursor: pointer;
} }
} }
* {
-webkit-tap-highlight-color: transparent;
outline: none !important;
}
:focus {
outline: none !important;
}
@layer base { @layer base {
:where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme=light] { :where(:root),:root:has(input.theme-controller[value=light]:checked),[data-theme=light] {
color-scheme: light; color-scheme: light;

View File

@@ -28,7 +28,6 @@ pub fn ContextMenu(
role="button" role="button"
tabindex="-1" tabindex="-1"
on:click=move |_| on_close.call(()) on:click=move |_| on_close.call(())
on:touchstart=move |_| on_close.call(())
on:contextmenu=move |e| e.prevent_default() on:contextmenu=move |e| e.prevent_default()
></div> ></div>