Notes header: move count before title as '<N> note(s) @ #gh'; remove parentheses; keep count non-bold

This commit is contained in:
jack
2025-09-13 12:39:02 +02:00
parent 8c9bfaa20e
commit 0a151f51df
+5 -6
View File
@@ -42,13 +42,12 @@ struct LocationNotesView: View {
private var header: some View { private var header: some View {
HStack { HStack {
VStack(alignment: .leading, spacing: 2) { VStack(alignment: .leading, spacing: 2) {
HStack(spacing: 6) { HStack(spacing: 4) {
Text("notes @ #\(geohash)")
.font(.system(size: 16, weight: .bold, design: .monospaced))
let c = manager.notes.count let c = manager.notes.count
Text("(\(c) \(c == 1 ? "note" : "notes"))") Text("\(c) \(c == 1 ? "note" : "notes") ")
.font(.system(size: 12, design: .monospaced)) .font(.system(size: 16, weight: .regular, design: .monospaced))
.foregroundColor(secondaryTextColor) Text("@ #\(geohash)")
.font(.system(size: 16, weight: .bold, design: .monospaced))
} }
if let buildingName = locationManager.locationNames[.building], !buildingName.isEmpty { if let buildingName = locationManager.locationNames[.building], !buildingName.isEmpty {
Text(buildingName) Text(buildingName)