File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {Hashtag_Stroke2_Corner0_Rounded as FeedsIcon} from '#/components/icons/H
2020import * as Layout from '#/components/Layout'
2121import { Link } from '#/components/Link'
2222import { useAnalytics } from '#/analytics'
23- import { IS_DEV , IS_LIQUID_GLASS } from '#/env'
23+ import { IS_DEV , IS_LIQUID_GLASS , IS_WEB } from '#/env'
2424
2525export function HomeHeaderLayoutMobile ( {
2626 children,
@@ -49,7 +49,10 @@ export function HomeHeaderLayoutMobile({
4949 left : 0 ,
5050 right : 0 ,
5151 } ,
52- IS_LIQUID_GLASS && { paddingTop : insets . top } ,
52+ // Eurosky fork: the home header is position:fixed at top:0, so on web
53+ // (incl. standalone PWA) it must pad past the notch/Dynamic Island.
54+ // Other screens get this via Layout.Screen; the fixed home header does not.
55+ ( IS_LIQUID_GLASS || IS_WEB ) && { paddingTop : insets . top } ,
5356 headerMinimalShellTransform ,
5457 ] }
5558 onLayout = { e => {
Original file line number Diff line number Diff line change 11import { useCallback } from 'react'
22import { View } from 'react-native'
33import Animated from 'react-native-reanimated'
4+ import { useSafeAreaInsets } from 'react-native-safe-area-context'
45import { msg , plural } from '@lingui/core/macro'
56import { useLingui } from '@lingui/react'
67import { Trans } from '@lingui/react/macro'
@@ -52,6 +53,9 @@ export function BottomBarWeb() {
5253 const { _} = useLingui ( )
5354 const { hasSession, currentAccount} = useSession ( )
5455 const t = useTheme ( )
56+ // Eurosky fork: pad the bottom bar past the iOS home indicator when running
57+ // as a standalone PWA (env(safe-area-inset-bottom)); 0 in a browser tab.
58+ const insets = useSafeAreaInsets ( )
5559 const footerMinimalShellTransform = useMinimalShellFooterTransform ( )
5660 const { requestSwitchToAccount} = useLoggedOutViewControls ( )
5761 const closeAllActiveElements = useCloseAllActiveElements ( )
@@ -90,6 +94,7 @@ export function BottomBarWeb() {
9094 styles . bottomBar ,
9195 styles . bottomBarWeb ,
9296 t . atoms . bg ,
97+ { paddingBottom : insets . bottom } ,
9398 hideBorder
9499 ? { borderColor : t . atoms . bg . backgroundColor }
95100 : t . atoms . border_contrast_low ,
You can’t perform that action at this time.
0 commit comments