make profile section consistent
This commit is contained in:
1 file changed
+17
-15
@@ -100,11 +100,7 @@ function ProfileAvatar({ profile, userId }: ProfileProps) {
|
||||
|
||||
return (
|
||||
<SettingTile
|
||||
title={
|
||||
<Text as="span" size="L400">
|
||||
Avatar
|
||||
</Text>
|
||||
}
|
||||
title="Avatar"
|
||||
after={
|
||||
<Avatar size="500" radii="300">
|
||||
<UserAvatar
|
||||
@@ -281,11 +277,7 @@ function ProfileBanner({ profile, userId }: ProfileProps) {
|
||||
|
||||
return (
|
||||
<SettingTile
|
||||
title={
|
||||
<Text as="span" size="L400">
|
||||
Profile Banner
|
||||
</Text>
|
||||
}
|
||||
title="Banner"
|
||||
>
|
||||
<Box direction="Column" gap="300" grow="Yes">
|
||||
<Box
|
||||
@@ -433,11 +425,7 @@ function ProfileDisplayName({ profile, userId }: ProfileProps) {
|
||||
const hasChanges = displayName !== defaultDisplayName;
|
||||
return (
|
||||
<SettingTile
|
||||
title={
|
||||
<Text as="span" size="L400">
|
||||
Display Name
|
||||
</Text>
|
||||
}
|
||||
title="Display Name"
|
||||
>
|
||||
<Box direction="Column" grow="Yes" gap="100">
|
||||
<Box
|
||||
@@ -635,7 +623,21 @@ export function Profile() {
|
||||
gap="400"
|
||||
>
|
||||
<ProfileBanner userId={userId} profile={profile} />
|
||||
</SequenceCard>
|
||||
<SequenceCard
|
||||
className={SequenceCardStyle}
|
||||
variant="SurfaceVariant"
|
||||
direction="Column"
|
||||
gap="400"
|
||||
>
|
||||
<ProfileAvatar userId={userId} profile={profile} />
|
||||
</SequenceCard>
|
||||
<SequenceCard
|
||||
className={SequenceCardStyle}
|
||||
variant="SurfaceVariant"
|
||||
direction="Column"
|
||||
gap="400"
|
||||
>
|
||||
<ProfileDisplayName userId={userId} profile={profile} />
|
||||
</SequenceCard>
|
||||
</Box>
|
||||
|
||||
Reference in new issue
Block a user