iOS 26 (#9047)
Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -133,7 +133,7 @@ import * as Prompt from '#/components/Prompt'
|
||||
import * as Toast from '#/components/Toast'
|
||||
import {Text} from '#/components/Typography'
|
||||
import {useAnalytics} from '#/analytics'
|
||||
import {IS_ANDROID, IS_IOS, IS_NATIVE, IS_WEB} from '#/env'
|
||||
import {IS_ANDROID, IS_IOS, IS_LIQUID_GLASS, IS_NATIVE, IS_WEB} from '#/env'
|
||||
import {BottomSheetPortalProvider} from '../../../../modules/bottom-sheet'
|
||||
import {
|
||||
draftToComposerPosts,
|
||||
@@ -1522,7 +1522,7 @@ function ComposerTopBar({
|
||||
<Animated.View
|
||||
style={topBarAnimatedStyle}
|
||||
layout={native(LinearTransition)}>
|
||||
<View style={styles.topbarInner}>
|
||||
<View style={[a.flex_row, a.align_center, a.gap_xs, a.p_lg, a.pb_md]}>
|
||||
<Button
|
||||
label={_(msg`Cancel`)}
|
||||
variant="ghost"
|
||||
@@ -2138,10 +2138,15 @@ function useKeyboardVerticalOffset() {
|
||||
return bottom * -1
|
||||
}
|
||||
|
||||
// they ditched the gap behaviour on 26
|
||||
if (IS_LIQUID_GLASS) {
|
||||
return top
|
||||
}
|
||||
|
||||
// iPhone SE
|
||||
if (top === 20) return 40
|
||||
|
||||
// all other iPhones
|
||||
// all other iPhones on <26
|
||||
return top + 10
|
||||
}
|
||||
|
||||
@@ -2186,13 +2191,6 @@ function useHideKeyboardOnBackground() {
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
topbarInner: {
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center',
|
||||
paddingHorizontal: 8,
|
||||
height: 54,
|
||||
gap: 4,
|
||||
},
|
||||
postBtn: {
|
||||
borderRadius: 20,
|
||||
paddingHorizontal: 20,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {useState} from 'react'
|
||||
import {TouchableOpacity, View} from 'react-native'
|
||||
import {TouchableOpacity, useWindowDimensions, View} from 'react-native'
|
||||
import {msg} from '@lingui/core/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
import {Plural, Trans} from '@lingui/react/macro'
|
||||
@@ -69,6 +69,7 @@ export function GifAltTextDialogLoaded({
|
||||
const {_} = useLingui()
|
||||
const t = useTheme()
|
||||
const [altTextDraft, setAltTextDraft] = useState(altText || vendorAltText)
|
||||
const {height: minHeight} = useWindowDimensions()
|
||||
return (
|
||||
<>
|
||||
<TouchableOpacity
|
||||
@@ -108,7 +109,8 @@ export function GifAltTextDialogLoaded({
|
||||
control={control}
|
||||
onClose={() => {
|
||||
onSubmit(altTextDraft)
|
||||
}}>
|
||||
}}
|
||||
nativeOptions={{minHeight}}>
|
||||
<Dialog.Handle />
|
||||
<AltTextInner
|
||||
vendorAltText={vendorAltText}
|
||||
|
||||
Reference in New Issue
Block a user