Fixed font formatting
This commit is contained in:
@@ -126,7 +126,7 @@ struct EventView: View {
|
||||
HStack(alignment: .center) {
|
||||
EventProfileName(pubkey: pubkey, profile: profile, contacts: damus.contacts, show_friend_confirmed: show_friend_icon)
|
||||
Text("\(format_relative_time(event.created_at))")
|
||||
.font(.subheadline)
|
||||
.font(.body)
|
||||
.foregroundColor(.gray)
|
||||
}
|
||||
|
||||
|
||||
@@ -64,10 +64,10 @@ struct NoteContentView: View {
|
||||
return VStack(alignment: .leading) {
|
||||
if let txt = try? AttributedString(markdown: artifacts.content, options: md_opts) {
|
||||
Text(txt)
|
||||
.font(.subheadline)
|
||||
.font(.body)
|
||||
} else {
|
||||
Text(artifacts.content)
|
||||
.font(.subheadline)
|
||||
.font(.body)
|
||||
}
|
||||
if show_images && artifacts.images.count > 0 {
|
||||
ImageCarousel(urls: artifacts.images)
|
||||
|
||||
@@ -75,7 +75,7 @@ struct ProfileName: View {
|
||||
HStack {
|
||||
|
||||
Text(prefix + String(display_name ?? Profile.displayName(profile: profile, pubkey: pubkey)))
|
||||
.font(.subheadline)
|
||||
.font(.body)
|
||||
.fontWeight(prefix == "@" ? .none : .bold)
|
||||
if let frend = friend_icon {
|
||||
Label("", systemImage: frend)
|
||||
@@ -140,14 +140,14 @@ struct EventProfileName: View {
|
||||
HStack {
|
||||
if let real_name = profile?.display_name {
|
||||
Text(real_name)
|
||||
.font(.subheadline.weight(.bold))
|
||||
.font(.body.weight(.bold))
|
||||
|
||||
Text("@" + String(display_name ?? Profile.displayName(profile: profile, pubkey: pubkey)))
|
||||
.foregroundColor(.gray)
|
||||
.font(.subheadline)
|
||||
.font(.body)
|
||||
} else {
|
||||
Text(String(display_name ?? Profile.displayName(profile: profile, pubkey: pubkey)))
|
||||
.font(.subheadline)
|
||||
.font(.body)
|
||||
.fontWeight(.bold)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user