From f4dbb545e0e9f7822e3b22f945261c5fbc2a6a53 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Wed, 1 Jul 2026 13:06:11 +0200 Subject: [PATCH] fix(ui): suppress tap-flash directly on the header title and back MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The global -webkit-tap-highlight-color on #app was not enough on Android in-app WebViews (Telegram, VK): they only suppress the selection-like tap flash when -webkit-user-select / -webkit-tap-highlight-color / -webkit-touch-callout sit DIRECTLY on the tapped element, not inherited. Set them on the two tappable header controls — the title (a 10-tap debug target) and the back chevron. --- ui/src/components/Header.svelte | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/src/components/Header.svelte b/ui/src/components/Header.svelte index 67b8e6c..222051d 100644 --- a/ui/src/components/Header.svelte +++ b/ui/src/components/Header.svelte @@ -124,6 +124,17 @@ .back:hover { background: var(--surface-2); } + /* Android in-app WebViews (Telegram, VK) flash a selection-like box on the two tappable header + controls — the title (a 10-tap debug target) and the back chevron — on a plain tap. The global + -webkit-user-select / -webkit-tap-highlight-color on #app is inherited, but those WebViews only + suppress the artifact when the properties sit DIRECTLY on the tapped element. */ + h1, + .back { + -webkit-user-select: none; + user-select: none; + -webkit-touch-callout: none; + -webkit-tap-highlight-color: transparent; + } /* A thin, compact "<" drawn from two borders — lighter than a glyph. */ .chev { width: 11px;