From 8c9bfaa20ea36e0158b28d89cdddf71c8b9f4ad6 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 13 Sep 2025 12:33:49 +0200 Subject: [PATCH] Notes header: show count as '(N note/notes)' with non-bold, secondary styling next to title --- bitchat/Views/LocationNotesView.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bitchat/Views/LocationNotesView.swift b/bitchat/Views/LocationNotesView.swift index 0153983f..be3e5741 100644 --- a/bitchat/Views/LocationNotesView.swift +++ b/bitchat/Views/LocationNotesView.swift @@ -42,8 +42,14 @@ struct LocationNotesView: View { private var header: some View { HStack { VStack(alignment: .leading, spacing: 2) { - Text("notes @ #\(geohash) (\(manager.notes.count))") - .font(.system(size: 16, weight: .bold, design: .monospaced)) + HStack(spacing: 6) { + Text("notes @ #\(geohash)") + .font(.system(size: 16, weight: .bold, design: .monospaced)) + let c = manager.notes.count + Text("(\(c) \(c == 1 ? "note" : "notes"))") + .font(.system(size: 12, design: .monospaced)) + .foregroundColor(secondaryTextColor) + } if let buildingName = locationManager.locationNames[.building], !buildingName.isEmpty { Text(buildingName) .font(.system(size: 12, design: .monospaced))