mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 10:25:18 +00:00
Notes header: show count as '(N note/notes)' with non-bold, secondary styling next to title
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user