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): the login page's language menu stands beside a Duo's status capsule

Maurice2bcef51664c7
diff --git a/client/src/pages/LoginPage.tsx b/client/src/pages/LoginPage.tsx
index 2945ae510..33f6a8ee1 100644
--- a/client/src/pages/LoginPage.tsx
+++ b/client/src/pages/LoginPage.tsx
@@ -228,8 +228,10 @@ export default function LoginPage(): React.ReactElement {
return (
<div style={{ minHeight: '100vh', display: 'flex', fontFamily: 'var(--font-system)', position: 'relative' }}>
- {/* Language dropdown, below the status bar in the app and under a notch, not behind them */}
- <div className="absolute end-4 top-[calc(env(safe-area-inset-top,0px)+16px)] z-10">
+ {/* Language dropdown, below the status bar in the app and under a notch, not behind them, and
+ beside an element in the top corner, such as an iPhone Duo's status capsule. The insets the
+ iOS app measures (--trek-native-*) are a floor under env(), as in the touch shell. */}
+ <div className="absolute end-[calc(16px+max(env(safe-area-inset-right,0px),var(--trek-native-safe-right,0px),var(--trek-native-corner-right,0px)))] top-[calc(max(env(safe-area-inset-top,0px),var(--trek-native-safe-top,0px))+16px)] z-10 rtl:end-[calc(16px+max(env(safe-area-inset-left,0px),var(--trek-native-safe-left,0px),var(--trek-native-corner-left,0px)))]">
<button type="button"
onClick={(e) => {
e.stopPropagation();