iOS 26 followups (#9936)
This commit is contained in:
@@ -10,10 +10,6 @@ const EXP_CURVE = 'cubic-bezier(0.16, 1, 0.3, 1)'
|
||||
export const atoms = {
|
||||
...baseAtoms,
|
||||
|
||||
rounded_sheet: {
|
||||
borderRadius: 40,
|
||||
},
|
||||
|
||||
h_full_vh: web({
|
||||
height: '100vh',
|
||||
}),
|
||||
|
||||
@@ -1522,7 +1522,13 @@ function ComposerTopBar({
|
||||
<Animated.View
|
||||
style={topBarAnimatedStyle}
|
||||
layout={native(LinearTransition)}>
|
||||
<View style={[a.flex_row, a.align_center, a.gap_xs, a.p_lg, a.pb_md]}>
|
||||
<View
|
||||
style={[
|
||||
a.flex_row,
|
||||
a.align_center,
|
||||
a.gap_xs,
|
||||
IS_LIQUID_GLASS ? [a.px_lg, a.pb_md] : [a.p_sm],
|
||||
]}>
|
||||
<Button
|
||||
label={_(msg`Cancel`)}
|
||||
variant="ghost"
|
||||
|
||||
@@ -6,7 +6,6 @@ import {useComposerState} from '#/state/shell/composer'
|
||||
import {ComposePost, useComposerCancelRef} from '#/view/com/composer/Composer'
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
import {SheetCompatProvider as TooltipSheetCompatProvider} from '#/components/Tooltip'
|
||||
import {IS_LIQUID_GLASS} from '#/env'
|
||||
|
||||
export function Composer({}: {winHeight: number}) {
|
||||
const {setFullyExpandedCount} = useDialogStateControlContext()
|
||||
@@ -34,9 +33,8 @@ export function Composer({}: {winHeight: number}) {
|
||||
presentationStyle="pageSheet"
|
||||
animationType="slide"
|
||||
onRequestClose={() => ref.current?.onPressCancel()}
|
||||
backdropColor="transparent"
|
||||
style={[!IS_LIQUID_GLASS && a.rounded_sheet]}>
|
||||
<View style={[a.flex_1, a.curve_continuous, t.atoms.bg]}>
|
||||
backdropColor="transparent">
|
||||
<View style={[a.flex_1, t.atoms.bg]}>
|
||||
<TooltipSheetCompatProvider>
|
||||
<ComposePost
|
||||
cancelRef={ref}
|
||||
|
||||
Reference in New Issue
Block a user