AppAccountView: support emoji in account name + slight design change

This commit is contained in:
Stanislas Lange 2022-12-30 22:30:18 +01:00
parent 6906069509
commit cae02c439b
No known key found for this signature in database

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)
} }
} }