Fix scroll edge effects on iOS 27 (#10907)
This commit is contained in:
@@ -20,10 +20,10 @@ import * as Layout from '#/components/Layout'
|
|||||||
import {Link} from '#/components/Link'
|
import {Link} from '#/components/Link'
|
||||||
import {ProfileBadges} from '#/components/ProfileBadges'
|
import {ProfileBadges} from '#/components/ProfileBadges'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {IS_LIQUID_GLASS, IS_WEB} from '#/env'
|
import {IS_LIQUID_GLASS} from '#/env'
|
||||||
import {type ConvoWithDetails} from './util'
|
import {type ConvoWithDetails} from './util'
|
||||||
|
|
||||||
const PFP_SIZE = IS_WEB ? 40 : Layout.HEADER_SLOT_SIZE
|
const PFP_SIZE = 40
|
||||||
|
|
||||||
export function MessagesListHeader({convo}: {convo?: ConvoWithDetails | null}) {
|
export function MessagesListHeader({convo}: {convo?: ConvoWithDetails | null}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
@@ -176,7 +176,7 @@ function GroupHeaderReady({
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}>
|
}>
|
||||||
<AvatarBubbles size={40} profiles={convo.members} />
|
<AvatarBubbles size={PFP_SIZE} profiles={convo.members} />
|
||||||
<View style={[a.flex_row, a.flex_1, a.align_center]}>
|
<View style={[a.flex_row, a.flex_1, a.align_center]}>
|
||||||
<Text
|
<Text
|
||||||
style={[a.text_lg, a.font_semi_bold, a.flex_shrink]}
|
style={[a.text_lg, a.font_semi_bold, a.flex_shrink]}
|
||||||
|
|||||||
@@ -262,6 +262,7 @@ function InnerReady({
|
|||||||
{IS_LIQUID_GLASS ? (
|
{IS_LIQUID_GLASS ? (
|
||||||
<ScrollEdgeEffect
|
<ScrollEdgeEffect
|
||||||
edge="top"
|
edge="top"
|
||||||
|
effect="soft"
|
||||||
style={[a.absolute, a.w_full, a.z_10, {paddingTop: topInset}]}
|
style={[a.absolute, a.w_full, a.z_10, {paddingTop: topInset}]}
|
||||||
onLayout={onHeaderLayout}>
|
onLayout={onHeaderLayout}>
|
||||||
{header}
|
{header}
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ export function ComposerContainer({children}: {children: React.ReactNode}) {
|
|||||||
|
|
||||||
if (IS_LIQUID_GLASS) {
|
if (IS_LIQUID_GLASS) {
|
||||||
return (
|
return (
|
||||||
<ScrollEdgeEffect edge="bottom">
|
<ScrollEdgeEffect edge="bottom" effect="soft">
|
||||||
<Animated.View style={[a.w_full, animatedContainerStyle, a.pb_lg]}>
|
<Animated.View style={[a.w_full, animatedContainerStyle, a.pb_lg]}>
|
||||||
{children}
|
{children}
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
|
|||||||
Reference in New Issue
Block a user