Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(native): no logo shadow on the Android welcome screen, where the web view drew it as a dark halo

Maurice9f6ab1183919
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;