deer social fork for personal usage. but you might see a use idk. github mirror

fix gap on profile (#9081)

authored by samuel.fm and committed by GitHub c7ce827b 9e0f1925

Changed files
+31 -14
src
+3 -1
src/components/moderation/LabelsOnMeDialog.tsx
··· 32 33 export function LabelsOnMeDialog(props: LabelsOnMeDialogProps) { 34 return ( 35 - <Dialog.Outer control={props.control}> 36 <Dialog.Handle /> 37 <LabelsOnMeDialogInner {...props} /> 38 </Dialog.Outer>
··· 32 33 export function LabelsOnMeDialog(props: LabelsOnMeDialogProps) { 34 return ( 35 + <Dialog.Outer 36 + control={props.control} 37 + nativeOptions={{preventExpansion: true}}> 38 <Dialog.Handle /> 39 <LabelsOnMeDialogInner {...props} /> 40 </Dialog.Outer>
+3 -1
src/components/moderation/ModerationDetailsDialog.tsx
··· 24 25 export function ModerationDetailsDialog(props: ModerationDetailsDialogProps) { 26 return ( 27 - <Dialog.Outer control={props.control}> 28 <Dialog.Handle /> 29 <ModerationDetailsDialogInner {...props} /> 30 </Dialog.Outer>
··· 24 25 export function ModerationDetailsDialog(props: ModerationDetailsDialogProps) { 26 return ( 27 + <Dialog.Outer 28 + control={props.control} 29 + nativeOptions={{preventExpansion: true}}> 30 <Dialog.Handle /> 31 <ModerationDetailsDialogInner {...props} /> 32 </Dialog.Outer>
+2 -1
src/components/moderation/ProfileHeaderAlerts.tsx
··· 6 7 export function ProfileHeaderAlerts({ 8 moderation, 9 }: { 10 moderation: ModerationDecision 11 style?: StyleProp<ViewStyle> ··· 16 } 17 18 return ( 19 - <Pills.Row size="lg"> 20 {modui.alerts.filter(unique).map(cause => ( 21 <Pills.Label 22 size="lg"
··· 6 7 export function ProfileHeaderAlerts({ 8 moderation, 9 + style, 10 }: { 11 moderation: ModerationDecision 12 style?: StyleProp<ViewStyle> ··· 17 } 18 19 return ( 20 + <Pills.Row size="lg" style={style}> 21 {modui.alerts.filter(unique).map(cause => ( 22 <Pills.Label 23 size="lg"
+23 -11
src/screens/Profile/Header/Shell.tsx
··· 209 210 {children} 211 212 - {!isPlaceholderProfile && ( 213 - <View 214 - style={[a.px_lg, a.pt_xs, a.pb_sm]} 215 - pointerEvents={isIOS ? 'auto' : 'box-none'}> 216 - {isMe ? ( 217 - <LabelsOnMe type="account" labels={profile.labels} /> 218 - ) : ( 219 - <ProfileHeaderAlerts moderation={moderation} /> 220 - )} 221 - </View> 222 - )} 223 224 <GrowableAvatar style={[a.absolute, {top: 104, left: 10}]}> 225 <TouchableWithoutFeedback
··· 209 210 {children} 211 212 + {!isPlaceholderProfile && 213 + (isMe ? ( 214 + <LabelsOnMe 215 + type="account" 216 + labels={profile.labels} 217 + style={[ 218 + a.px_lg, 219 + a.pt_xs, 220 + a.pb_sm, 221 + isIOS ? a.pointer_events_auto : {pointerEvents: 'box-none'}, 222 + ]} 223 + /> 224 + ) : ( 225 + <ProfileHeaderAlerts 226 + moderation={moderation} 227 + style={[ 228 + a.px_lg, 229 + a.pt_xs, 230 + a.pb_sm, 231 + isIOS ? a.pointer_events_auto : {pointerEvents: 'box-none'}, 232 + ]} 233 + /> 234 + ))} 235 236 <GrowableAvatar style={[a.absolute, {top: 104, left: 10}]}> 237 <TouchableWithoutFeedback