Reduce excessive empty space on profile with no bio

This commit is contained in:
Dan Abramov
2024-12-11 20:35:13 +00:00
parent de15f8e2d3
commit c55063d262
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export function ProfileHeaderMetrics({
return ( return (
<View <View
style={[a.flex_row, a.gap_sm, a.align_center, a.pb_md]} style={[a.flex_row, a.gap_sm, a.align_center]}
pointerEvents="box-none"> pointerEvents="box-none">
<InlineLinkText <InlineLinkText
testID="profileHeaderFollowersButton" testID="profileHeaderFollowersButton"
@@ -244,7 +244,7 @@ let ProfileHeaderStandard = ({
<ProfileHeaderHandle profile={profile} /> <ProfileHeaderHandle profile={profile} />
</View> </View>
{!isPlaceholderProfile && !isBlockedUser && ( {!isPlaceholderProfile && !isBlockedUser && (
<> <View style={a.gap_md}>
<ProfileHeaderMetrics profile={profile} /> <ProfileHeaderMetrics profile={profile} />
{descriptionRT && !moderation.ui('profileView').blur ? ( {descriptionRT && !moderation.ui('profileView').blur ? (
<View pointerEvents="auto"> <View pointerEvents="auto">
@@ -262,14 +262,14 @@ let ProfileHeaderStandard = ({
{!isMe && {!isMe &&
!isBlockedUser && !isBlockedUser &&
shouldShowKnownFollowers(profile.viewer?.knownFollowers) && ( shouldShowKnownFollowers(profile.viewer?.knownFollowers) && (
<View style={[a.flex_row, a.align_center, a.gap_sm, a.pt_md]}> <View style={[a.flex_row, a.align_center, a.gap_sm]}>
<KnownFollowers <KnownFollowers
profile={profile} profile={profile}
moderationOpts={moderationOpts} moderationOpts={moderationOpts}
/> />
</View> </View>
)} )}
</> </View>
)} )}
</View> </View>
<Prompt.Basic <Prompt.Basic