Move uptime out of the device metrics log grid

This commit is contained in:
Garth Vander Houwen 2024-04-22 15:17:45 -07:00
parent 85bda07bae
commit 91a1d93ef8
3 changed files with 11 additions and 5 deletions

View file

@ -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) {

View file

@ -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)

View file

@ -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()