Browse Source

Remove unnecessary padding, the Column already have a padding.

pull/3718/head
Benoit Marty 2 weeks ago committed by Benoit Marty
parent
commit
ddf4c6de09
  1. 7
      features/userprofile/shared/src/main/kotlin/io/element/android/features/userprofile/shared/UserProfileHeaderSection.kt

7
features/userprofile/shared/src/main/kotlin/io/element/android/features/userprofile/shared/UserProfileHeaderSection.kt

@ -48,8 +48,8 @@ fun UserProfileHeaderSection( @@ -48,8 +48,8 @@ fun UserProfileHeaderSection(
Avatar(
avatarData = AvatarData(userId.value, userName, avatarUrl, AvatarSize.UserHeader),
modifier = Modifier
.clickable(enabled = avatarUrl != null) { openAvatarPreview(avatarUrl!!) }
.testTag(TestTags.memberDetailAvatar)
.clickable(enabled = avatarUrl != null) { openAvatarPreview(avatarUrl!!) }
.testTag(TestTags.memberDetailAvatar)
)
Spacer(modifier = Modifier.height(24.dp))
if (userName != null) {
@ -65,9 +65,6 @@ fun UserProfileHeaderSection( @@ -65,9 +65,6 @@ fun UserProfileHeaderSection(
text = userId.value,
style = ElementTheme.typography.fontBodyLgRegular,
color = MaterialTheme.colorScheme.secondary,
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
textAlign = TextAlign.Center,
)
Spacer(Modifier.height(40.dp))

Loading…
Cancel
Save