From 9f6ab11839196559a77cbd4718c424f591278ed2 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 8 Nov 2026 14:36:12 +0100 Subject: [PATCH] fix(native): no logo shadow on the Android welcome screen, where the web view drew it as a dark halo --- client/native-shell/main.ts | 2 ++ client/native-shell/shell.css | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/client/native-shell/main.ts b/client/native-shell/main.ts index 11fec72bd..bc9f12468 100644 --- a/client/native-shell/main.ts +++ b/client/native-shell/main.ts @@ -26,6 +26,8 @@ const onPlay = Capacitor.getPlatform() === 'android'; const t = translator(locale); document.documentElement.lang = locale; document.documentElement.dir = directionOf(locale); +// For the few looks one web view draws differently from the other (shell.css). +document.documentElement.dataset.platform = Capacitor.getPlatform(); const root = document.getElementById('shell')!; const PROBE_TIMEOUT_MS = 8000; diff --git a/client/native-shell/shell.css b/client/native-shell/shell.css index 9778de8cd..3402090a1 100644 --- a/client/native-shell/shell.css +++ b/client/native-shell/shell.css @@ -410,6 +410,11 @@ body::after { drop-shadow(0 6px 16px color-mix(in srgb, var(--ink) 22%, transparent)); animation: logoRise 0.7s var(--ease) both; } +/* The Android web view draws the two shadows above as a dark halo round the mark; iOS keeps them. */ +:root[data-platform='android'] .hero-mark, +:root[data-platform='android'] .hero-logo { + filter: none; +} .hero-logo img { display: block; height: 62px;