From 179378031ab6c5bd9ee81d57d1ee842e3e6c12d8 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 13 Sep 2025 22:54:40 +0200 Subject: [PATCH] Notes sheet: show timestamp in brackets; drop #abcd from @name --- bitchat/Views/LocationNotesView.swift | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bitchat/Views/LocationNotesView.swift b/bitchat/Views/LocationNotesView.swift index 44c6a3bd..cb4f9cc7 100644 --- a/bitchat/Views/LocationNotesView.swift +++ b/bitchat/Views/LocationNotesView.swift @@ -97,7 +97,7 @@ struct LocationNotesView: View { ForEach(manager.notes) { note in VStack(alignment: .leading, spacing: 2) { HStack(spacing: 6) { - // Render @name with darker green for the #abcd suffix to match chat style + // Show @name without the #abcd suffix; timestamp in brackets HStack(spacing: 0) { Text("@") .font(.system(size: 12, weight: .semibold, design: .monospaced)) @@ -106,13 +106,9 @@ struct LocationNotesView: View { Text(parts.0) .font(.system(size: 12, weight: .semibold, design: .monospaced)) .foregroundColor(textColor) - if !parts.1.isEmpty { - Text(parts.1) - .font(.system(size: 12, weight: .semibold, design: .monospaced)) - .foregroundColor(textColor.opacity(0.6)) - } } - Text(timestampText(for: note.createdAt)) + let ts = timestampText(for: note.createdAt) + Text(ts.isEmpty ? "" : "[\(ts)]") .font(.system(size: 11, design: .monospaced)) .foregroundColor(secondaryTextColor.opacity(0.8)) }