From cb5593da06db91b8c05fe2645b4789cb8b81e4c4 Mon Sep 17 00:00:00 2001 From: Sam DuBois Date: Tue, 20 Dec 2022 09:44:14 -0700 Subject: [PATCH] Fixed font formatting --- damus/Views/EventView.swift | 2 +- damus/Views/NoteContentView.swift | 4 ++-- damus/Views/ProfileName.swift | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift index 863eb9d..2138757 100644 --- a/damus/Views/EventView.swift +++ b/damus/Views/EventView.swift @@ -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) } diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift index 6d6fc21..55c8794 100644 --- a/damus/Views/NoteContentView.swift +++ b/damus/Views/NoteContentView.swift @@ -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) diff --git a/damus/Views/ProfileName.swift b/damus/Views/ProfileName.swift index 803107d..4b0dce7 100644 --- a/damus/Views/ProfileName.swift +++ b/damus/Views/ProfileName.swift @@ -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) }