mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 19:45:22 +00:00
Notes sheet: show timestamp in brackets; drop #abcd from @name
This commit is contained in:
@@ -97,7 +97,7 @@ struct LocationNotesView: View {
|
|||||||
ForEach(manager.notes) { note in
|
ForEach(manager.notes) { note in
|
||||||
VStack(alignment: .leading, spacing: 2) {
|
VStack(alignment: .leading, spacing: 2) {
|
||||||
HStack(spacing: 6) {
|
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) {
|
HStack(spacing: 0) {
|
||||||
Text("@")
|
Text("@")
|
||||||
.font(.system(size: 12, weight: .semibold, design: .monospaced))
|
.font(.system(size: 12, weight: .semibold, design: .monospaced))
|
||||||
@@ -106,13 +106,9 @@ struct LocationNotesView: View {
|
|||||||
Text(parts.0)
|
Text(parts.0)
|
||||||
.font(.system(size: 12, weight: .semibold, design: .monospaced))
|
.font(.system(size: 12, weight: .semibold, design: .monospaced))
|
||||||
.foregroundColor(textColor)
|
.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))
|
.font(.system(size: 11, design: .monospaced))
|
||||||
.foregroundColor(secondaryTextColor.opacity(0.8))
|
.foregroundColor(secondaryTextColor.opacity(0.8))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user