fix gap on profile (#9081)

This commit is contained in:
Samuel Newman
2025-09-30 07:28:50 +03:00
committed by GitHub
parent 9e0f192546
commit c7ce827bfe
4 changed files with 31 additions and 14 deletions
@@ -32,7 +32,9 @@ export interface LabelsOnMeDialogProps {
export function LabelsOnMeDialog(props: LabelsOnMeDialogProps) { export function LabelsOnMeDialog(props: LabelsOnMeDialogProps) {
return ( return (
<Dialog.Outer control={props.control}> <Dialog.Outer
control={props.control}
nativeOptions={{preventExpansion: true}}>
<Dialog.Handle /> <Dialog.Handle />
<LabelsOnMeDialogInner {...props} /> <LabelsOnMeDialogInner {...props} />
</Dialog.Outer> </Dialog.Outer>
@@ -24,7 +24,9 @@ export interface ModerationDetailsDialogProps {
export function ModerationDetailsDialog(props: ModerationDetailsDialogProps) { export function ModerationDetailsDialog(props: ModerationDetailsDialogProps) {
return ( return (
<Dialog.Outer control={props.control}> <Dialog.Outer
control={props.control}
nativeOptions={{preventExpansion: true}}>
<Dialog.Handle /> <Dialog.Handle />
<ModerationDetailsDialogInner {...props} /> <ModerationDetailsDialogInner {...props} />
</Dialog.Outer> </Dialog.Outer>
@@ -6,6 +6,7 @@ import * as Pills from '#/components/Pills'
export function ProfileHeaderAlerts({ export function ProfileHeaderAlerts({
moderation, moderation,
style,
}: { }: {
moderation: ModerationDecision moderation: ModerationDecision
style?: StyleProp<ViewStyle> style?: StyleProp<ViewStyle>
@@ -16,7 +17,7 @@ export function ProfileHeaderAlerts({
} }
return ( return (
<Pills.Row size="lg"> <Pills.Row size="lg" style={style}>
{modui.alerts.filter(unique).map(cause => ( {modui.alerts.filter(unique).map(cause => (
<Pills.Label <Pills.Label
size="lg" size="lg"
+23 -11
View File
@@ -209,17 +209,29 @@ let ProfileHeaderShell = ({
{children} {children}
{!isPlaceholderProfile && ( {!isPlaceholderProfile &&
<View (isMe ? (
style={[a.px_lg, a.pt_xs, a.pb_sm]} <LabelsOnMe
pointerEvents={isIOS ? 'auto' : 'box-none'}> type="account"
{isMe ? ( labels={profile.labels}
<LabelsOnMe type="account" labels={profile.labels} /> style={[
) : ( a.px_lg,
<ProfileHeaderAlerts moderation={moderation} /> a.pt_xs,
)} a.pb_sm,
</View> isIOS ? a.pointer_events_auto : {pointerEvents: 'box-none'},
)} ]}
/>
) : (
<ProfileHeaderAlerts
moderation={moderation}
style={[
a.px_lg,
a.pt_xs,
a.pb_sm,
isIOS ? a.pointer_events_auto : {pointerEvents: 'box-none'},
]}
/>
))}
<GrowableAvatar style={[a.absolute, {top: 104, left: 10}]}> <GrowableAvatar style={[a.absolute, {top: 104, left: 10}]}>
<TouchableWithoutFeedback <TouchableWithoutFeedback