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) {
Text(viewModel.appAccount.server)
.font(.headline)
if let account = viewModel.account {
Text(account.displayName)
Text(account.username)
.font(.footnote)
account.displayNameWithEmojis
Text("\(account.username)@\(viewModel.appAccount.server)")
.font(.subheadline)
.foregroundColor(.gray)
}
}