Skip to content

Commit a8878eb

Browse files
Fix UI overlap by translating absolute Map UI with CSS variables, and fix landing page flash via synchronous head script
1 parent 9842917 commit a8878eb

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Skypulse/src/app/layout.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,19 @@ export default function RootLayout({
152152
</Script>
153153
</>
154154
)}
155+
<script
156+
dangerouslySetInnerHTML={{
157+
__html: `
158+
if (window.Capacitor && (window.location.pathname === '/' || window.location.pathname === '/index.html')) {
159+
document.documentElement.style.display = 'none';
160+
window.location.replace('/map.html');
161+
}
162+
`,
163+
}}
164+
/>
155165
</head>
156-
<body className={`${inter.variable} font-sans antialiased overflow-x-hidden`}>
166+
<body
167+
className={`${inter.variable} font-sans antialiased text-white scrollbar-none bg-[#050505]`}>
157168
<NativeAppBypass />
158169
<AdMobProvider>
159170
{children}

Skypulse/src/components/flight-tracker.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,8 @@ function FlightTrackerInner() {
914914

915915
<div
916916
data-map-theme={mapStyle.dark ? "dark" : "light"}
917-
className="pointer-events-none absolute inset-0 z-10"
917+
className="pointer-events-none absolute inset-x-0 bottom-0 z-10"
918+
style={{ top: "var(--ad-banner-height, 0px)" }}
918919
>
919920
{!fpvIcao24 && (
920921
<div className="pointer-events-auto absolute left-3 top-3 flex items-center gap-3 sm:left-4 sm:top-4">

0 commit comments

Comments
 (0)