Bluesky app fork with some witchin' additions 💫

Handle zero bottom inset on iOS (#4184)

* set message padding to a minimum of 60 and max of 70

* adjust range

authored by hailey.at and committed by

GitHub 69f46848 8938fc87

+3 -3
+3 -3
src/screens/Messages/Conversation/MessagesList.tsx
··· 16 16 import {AppBskyRichtextFacet, RichText} from '@atproto/api' 17 17 18 18 import {shortenLinks} from '#/lib/strings/rich-text-manip' 19 - import {isIOS, isNative} from '#/platform/detection' 19 + import {isNative} from '#/platform/detection' 20 20 import {isConvoActive, useConvoActive} from '#/state/messages/convo' 21 21 import {ConvoItem, ConvoStatus} from '#/state/messages/convo/types' 22 22 import {useAgent} from '#/state/session' 23 + import {clamp} from 'lib/numbers' 23 24 import {ScrollProvider} from 'lib/ScrollContext' 24 25 import {isWeb} from 'platform/detection' 25 26 import {List} from 'view/com/util/List' ··· 221 222 222 223 // -- Keyboard animation handling 223 224 const {bottom: bottomInset} = useSafeAreaInsets() 224 - const nativeBottomBarHeight = isIOS ? 42 : 60 225 - const bottomOffset = isWeb ? 0 : bottomInset + nativeBottomBarHeight 225 + const bottomOffset = isWeb ? 0 : clamp(60 + bottomInset, 60, 75) 226 226 227 227 const keyboardHeight = useSharedValue(0) 228 228 const keyboardIsOpening = useSharedValue(false)