Various small UI tweaks for the new user details edit screen

This commit is contained in:
Stefan Ceriu
2023-09-15 16:39:45 +03:00
parent fe711a9a40
commit dd937cb86a
4 changed files with 25 additions and 3 deletions
@@ -23,11 +23,21 @@ struct UserDetailsEditScreen: View {
var body: some View {
Form {
avatar
Section {
avatar
} footer: {
Text(context.viewState.userID)
.frame(maxWidth: .infinity)
.font(.compound.bodyLG)
.foregroundColor(.compound.textPrimary)
.padding(.bottom, 16)
}
nameSection
}
.compoundList()
.scrollDismissesKeyboard(.immediately)
.navigationTitle(L10n.screenEditProfileTitle)
.navigationBarTitleDisplayMode(.inline)
.toolbar { toolbar }
}
@@ -53,7 +63,7 @@ struct UserDetailsEditScreen: View {
url: context.viewState.selectedAvatarURL,
name: context.viewState.currentDisplayName,
contentID: context.viewState.userID,
avatarSize: .user(on: .memberDetails),
avatarSize: .user(on: .editUserDetails),
imageProvider: context.imageProvider)
.overlay(alignment: .bottomTrailing) {
avatarOverlayIcon