fix(native): the login page's language menu stands beside a Duo's status capsule

This commit is contained in:
Maurice
2026-11-14 16:33:05 +01:00
parent 0f42b8b8ae
commit 2bcef51664
+4 -2
View File
@@ -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();