style: trim narration comments from recent changes
This commit is contained in:
@@ -5,7 +5,6 @@ import { Trans, useLingui } from '@lingui/react/macro'
|
||||
import { useAuth } from '@/contexts/auth-context'
|
||||
import { useIsMobile } from '@/hooks/use-is-mobile'
|
||||
|
||||
// Navbar geometry: 4rem height + 0.5rem margin + its safe-area bottom offset.
|
||||
const ABOVE_MOBILE_NAV_OFFSET = 'calc(4.5rem + env(safe-area-inset-bottom, 0px))'
|
||||
|
||||
export function IOSInstallPrompt() {
|
||||
@@ -43,8 +42,6 @@ export function IOSInstallPrompt() {
|
||||
? t`Tap Share → Add to Home Screen`
|
||||
: t`Tap Menu (⋮) → Add to Home screen`
|
||||
|
||||
// Navbar renders only under _authed, so a signed-in mobile user on a public
|
||||
// route has no nav to clear.
|
||||
const aboveBottomNav = Boolean(user) && isMobile
|
||||
const bottomStyle = aboveBottomNav
|
||||
? { bottom: ABOVE_MOBILE_NAV_OFFSET, paddingBottom: '8px' }
|
||||
|
||||
Reference in New Issue
Block a user