From 5b3f1a13502ea6df07730f362a0a3b27b461d1a6 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 13 Sep 2025 22:09:10 +0200 Subject: [PATCH] Location Notes: prefix usernames with @ and lighten #geohash\n\n- Show @ before usernames in notes list.\n- Split header into '@' and '#geohash' and color the geohash with secondary green for consistency. --- bitchat/Views/LocationNotesView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bitchat/Views/LocationNotesView.swift b/bitchat/Views/LocationNotesView.swift index 8f05ca90..71f1afc1 100644 --- a/bitchat/Views/LocationNotesView.swift +++ b/bitchat/Views/LocationNotesView.swift @@ -55,8 +55,11 @@ struct LocationNotesView: View { let c = manager.notes.count Text("\(c) \(c == 1 ? "note" : "notes") ") .font(.system(size: 16, weight: .bold, design: .monospaced)) - Text("@ #\(geohash)") + Text("@") .font(.system(size: 16, weight: .bold, design: .monospaced)) + Text("#\(geohash)") + .font(.system(size: 16, weight: .bold, design: .monospaced)) + .foregroundColor(secondaryTextColor) } if let buildingName = locationManager.locationNames[.building], !buildingName.isEmpty { Text(buildingName) @@ -90,7 +93,7 @@ struct LocationNotesView: View { ForEach(manager.notes) { note in VStack(alignment: .leading, spacing: 2) { HStack(spacing: 6) { - Text(note.displayName) + Text("@\(note.displayName)") .font(.system(size: 12, weight: .semibold, design: .monospaced)) .foregroundColor(secondaryTextColor) Text(timestampText(for: note.createdAt))