| ... | @@ -7,11 +7,13 @@ import Animated, { FadeIn, FadeOut, LinearTransition } from "react-native-reanim | ... | @@ -7,11 +7,13 @@ import Animated, { FadeIn, FadeOut, LinearTransition } from "react-native-reanim |
| 7 | import { useSafeAreaInsets } from "react-native-safe-area-context"; | 7 | import { useSafeAreaInsets } from "react-native-safe-area-context"; |
| 8 | | 8 | |
| 9 | import { AppText as Text } from "../../components/AppText"; | 9 | import { AppText as Text } from "../../components/AppText"; |
| | 10 | import { APP_BAR_HEIGHT } from "../../lib/layoutMetrics"; |
| 10 | import { tryOpenExternalUrl } from "../../lib/openExternalUrl"; | 11 | import { tryOpenExternalUrl } from "../../lib/openExternalUrl"; |
| 11 | import { useThemeColor } from "../../lib/useThemeColor"; | 12 | import { useThemeColor } from "../../lib/useThemeColor"; |
| 12 | import type { GitActionProgress } from "../../state/use-vcs-action-state"; | 13 | import type { GitActionProgress } from "../../state/use-vcs-action-state"; |
| 13 | | 14 | |
| 14 | const OVERLAY_LAYOUT_TRANSITION = LinearTransition.duration(220); | 15 | const OVERLAY_LAYOUT_TRANSITION = LinearTransition.duration(220); |
| | 16 | const OVERLAY_TOP_GAP = 8; |
| 15 | const AnimatedLiquidGlassView = Animated.createAnimatedComponent(LiquidGlassView); | 17 | const AnimatedLiquidGlassView = Animated.createAnimatedComponent(LiquidGlassView); |
| 16 | | 18 | |
| 17 | export function GitActionProgressOverlay(props: { | 19 | export function GitActionProgressOverlay(props: { |
| ... | @@ -52,7 +54,7 @@ export function GitActionProgressOverlay(props: { | ... | @@ -52,7 +54,7 @@ export function GitActionProgressOverlay(props: { |
| 52 | entering={isLiquidGlassSupported ? undefined : FadeIn.duration(200)} | 54 | entering={isLiquidGlassSupported ? undefined : FadeIn.duration(200)} |
| 53 | exiting={FadeOut.duration(150)} | 55 | exiting={FadeOut.duration(150)} |
| 54 | className="absolute inset-x-3 z-[100]" | 56 | className="absolute inset-x-3 z-[100]" |
| 55 | style={{ top: insets.top + 48 }} | 57 | style={{ top: insets.top + APP_BAR_HEIGHT + OVERLAY_TOP_GAP }} |
| 56 | pointerEvents="box-none" | 58 | pointerEvents="box-none" |
| 57 | > | 59 | > |
| 58 | <Pressable onPress={handlePress}> | 60 | <Pressable onPress={handlePress}> |