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(pwa): account for safe-area-inset-top in OfflineBanner so it's visible on iOS PWA

jubnlbe71425bb7ce
diff --git a/client/src/components/Layout/OfflineBanner.tsx b/client/src/components/Layout/OfflineBanner.tsx
index cde8e6105..04b58cf11 100644
--- a/client/src/components/Layout/OfflineBanner.tsx
+++ b/client/src/components/Layout/OfflineBanner.tsx
@@ -68,7 +68,10 @@ export default function OfflineBanner(): React.ReactElement | null {
alignItems: 'center',
justifyContent: 'center',
gap: 8,
- padding: '6px 16px',
+ paddingTop: 'calc(env(safe-area-inset-top, 0px) + 6px)',
+ paddingBottom: '6px',
+ paddingLeft: '16px',
+ paddingRight: '16px',
fontSize: 13,
fontWeight: 500,
}}