Fixed font formatting

This commit is contained in:
Sam DuBois
2022-12-20 09:44:14 -07:00
parent 8e4daa79a8
commit cb5593da06
3 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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