mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Move uptime out of the device metrics log grid
This commit is contained in:
parent
85bda07bae
commit
91a1d93ef8
3 changed files with 11 additions and 5 deletions
|
|
@ -86,8 +86,8 @@ struct DeviceMetricsLog: View {
|
|||
}
|
||||
.frame(minHeight: 250)
|
||||
}
|
||||
let localeDateFormat = DateFormatter.dateFormat(fromTemplate: "yyMMddjmma", options: 0, locale: Locale.current)
|
||||
let dateFormatString = (localeDateFormat ?? "MM/dd/YY j:mma").replacingOccurrences(of: ",", with: "")
|
||||
let localeDateFormat = DateFormatter.dateFormat(fromTemplate: "yyMdjmma", options: 0, locale: Locale.current)
|
||||
let dateFormatString = (localeDateFormat ?? "M/d/YY j:mma").replacingOccurrences(of: ",", with: "")
|
||||
if UIScreen.main.bounds.size.width > 768 && (UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac) {
|
||||
// Add a table for mac and ipad
|
||||
// Table(Array(deviceMetrics),id: \.self) {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ struct NodeDetail: View {
|
|||
.foregroundColor(Color.gray)
|
||||
},
|
||||
icon: {
|
||||
Image(systemName: "arrowshape.up.circle.fill")
|
||||
Image(systemName: "checkmark.circle.fill")
|
||||
.foregroundColor(.green)
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
.font(.title)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,10 @@ struct NodeInfoItem: View {
|
|||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Node Number:").font(.title2)
|
||||
}
|
||||
Text(String(node.num)).font(.title3).foregroundColor(.gray)
|
||||
Text(String(node.num))
|
||||
.font(.title3)
|
||||
.foregroundColor(.gray)
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
Divider()
|
||||
VStack {
|
||||
|
|
@ -75,7 +78,10 @@ struct NodeInfoItem: View {
|
|||
.symbolRenderingMode(.hierarchical)
|
||||
Text("User Id:").font(.title2)
|
||||
}
|
||||
Text(node.user?.userId ?? "?").font(.title3).foregroundColor(.gray)
|
||||
Text(node.user?.userId ?? "?")
|
||||
.font(.title3)
|
||||
.foregroundColor(.gray)
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
}
|
||||
Divider()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue