Merge pull request #8 from angristan/settings-account-list-emoji

AppAccountView: support emoji in account name + slight design change
This commit is contained in:
Thomas Ricouard 2022-12-30 22:50:21 +01:00 committed by GitHub
commit 693451e521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,12 +18,10 @@ struct AppAccountView: View {
} }
} }
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text(viewModel.appAccount.server)
.font(.headline)
if let account = viewModel.account { if let account = viewModel.account {
Text(account.displayName) account.displayNameWithEmojis
Text(account.username) Text("\(account.username)@\(viewModel.appAccount.server)")
.font(.footnote) .font(.subheadline)
.foregroundColor(.gray) .foregroundColor(.gray)
} }
} }