Tweak Boosted Label Layout for Better Alignment

This commit is contained in:
Joel Klabo
2022-12-28 22:03:15 -08:00
committed by William Casarin
parent 3370ac59d8
commit 4440f32814

View File

@@ -76,10 +76,9 @@ struct ProfileName: View {
Text(prefix + String(display_name ?? Profile.displayName(profile: profile, pubkey: pubkey)))
.font(.body)
.fontWeight(prefix == "@" ? .none : .bold)
if let frend = friend_icon {
Label("", systemImage: frend)
if let friend = friend_icon {
Image(systemName: friend)
.foregroundColor(.gray)
.font(.footnote)
}
}
.onReceive(handle_notify(.profile_updated)) { notif in