fix: general profile component layout fixes, and ability to disable the inset border for UserAvatar (#8711)
This commit is contained in:
committed by
GitHub
parent
f0b869aeeb
commit
dff0332dd0
@@ -23,7 +23,7 @@ export function ProfileHeaderHandle({
|
||||
const blockHide = profile.viewer?.blocking || profile.viewer?.blockedBy
|
||||
return (
|
||||
<View
|
||||
style={[a.flex_row, a.gap_xs, a.align_center, {maxWidth: '100%'}]}
|
||||
style={[a.flex_row, a.gap_sm, a.align_center, {maxWidth: '100%'}]}
|
||||
pointerEvents={disableTaps ? 'none' : isIOS ? 'auto' : 'box-none'}>
|
||||
<NewskieDialog profile={profile} disabled={disableTaps} />
|
||||
{profile.viewer?.followedBy && !blockHide ? (
|
||||
|
||||
@@ -251,7 +251,7 @@ let ProfileHeaderStandard = ({
|
||||
<ProfileMenu profile={profile} />
|
||||
</View>
|
||||
<View
|
||||
style={[a.flex_col, a.gap_2xs, a.pb_sm, live ? a.pt_sm : a.pt_2xs]}>
|
||||
style={[a.flex_col, a.gap_sm, a.pb_sm, live ? a.pt_sm : a.pt_2xs]}>
|
||||
<View style={[a.flex_row, a.align_center, a.gap_xs, a.flex_1]}>
|
||||
<Text
|
||||
emoji
|
||||
|
||||
@@ -229,6 +229,7 @@ let ProfileHeaderShell = ({
|
||||
size={live.isActive ? 88 : 90}
|
||||
avatar={profile.avatar}
|
||||
moderation={moderation.ui('avatar')}
|
||||
noBorder
|
||||
/>
|
||||
{live.isActive && <LiveIndicator size="large" />}
|
||||
</Animated.View>
|
||||
@@ -260,7 +261,7 @@ export {ProfileHeaderShell}
|
||||
const styles = StyleSheet.create({
|
||||
backBtnWrapper: {
|
||||
position: 'absolute',
|
||||
left: 10,
|
||||
left: 12,
|
||||
width: 30,
|
||||
height: 30,
|
||||
overflow: 'hidden',
|
||||
@@ -279,8 +280,8 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
aviPosition: {
|
||||
position: 'absolute',
|
||||
top: 110,
|
||||
left: 10,
|
||||
top: 104,
|
||||
left: 16,
|
||||
},
|
||||
avi: {
|
||||
width: 94,
|
||||
|
||||
Reference in New Issue
Block a user