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