From bfd24f6d9ed9fb59c19d3ce74469fad8816ea9f9 Mon Sep 17 00:00:00 2001 From: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Date: Mon, 11 May 2026 09:40:56 -0700 Subject: [PATCH] Update appearance of new messages pill (#10442) --- src/components/dms/NewMessagesPill.tsx | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/components/dms/NewMessagesPill.tsx b/src/components/dms/NewMessagesPill.tsx index 7abe528784..fa9520286c 100644 --- a/src/components/dms/NewMessagesPill.tsx +++ b/src/components/dms/NewMessagesPill.tsx @@ -7,7 +7,6 @@ import Animated, { withTiming, } from 'react-native-reanimated' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import {Trans} from '@lingui/react/macro' import { ScaleAndFadeIn, @@ -15,8 +14,8 @@ import { } from '#/lib/custom-animations/ScaleAndFade' import {useHaptics} from '#/lib/haptics' import {atoms as a, useTheme} from '#/alf' -import {Text} from '#/components/Typography' -import {IS_ANDROID, IS_IOS, IS_WEB} from '#/env' +import {ArrowBottom_Stroke2_Corner0_Rounded as ArrowDownIcon} from '#/components/icons/Arrow' +import {IS_WEB} from '#/env' const AnimatedPressable = Animated.createAnimatedComponent(Pressable) @@ -28,8 +27,6 @@ export function NewMessagesPill({ const t = useTheme() const playHaptic = useHaptics() const {bottom: bottomInset} = useSafeAreaInsets() - const bottomBarHeight = IS_IOS ? 42 : IS_ANDROID ? 60 : 0 - const bottomOffset = IS_WEB ? 0 : bottomInset + bottomBarHeight const scale = useSharedValue(1) @@ -60,25 +57,24 @@ export function NewMessagesPill({ a.z_10, a.align_center, { - bottom: bottomOffset + 70, + bottom: bottomInset + 70, // Don't prevent scrolling in this area _except_ for in the pill itself pointerEvents: 'box-none', }, ]}> - - New messages - + )