From 74ab2953044bc17a3f0ea9ae80823c4202ce5b8f Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 18 Jul 2024 17:39:51 -0700 Subject: [PATCH] smaller bolt --- Meshtastic/Views/Nodes/DeviceMetricsLog.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Meshtastic/Views/Nodes/DeviceMetricsLog.swift b/Meshtastic/Views/Nodes/DeviceMetricsLog.swift index ba8f340a..405147f9 100644 --- a/Meshtastic/Views/Nodes/DeviceMetricsLog.swift +++ b/Meshtastic/Views/Nodes/DeviceMetricsLog.swift @@ -87,13 +87,13 @@ struct DeviceMetricsLog: View { .chartXAxis(.automatic) .chartYScale(domain: 0...100) .chartForegroundStyleScale([ - "Battery Level": batteryChartColor, + idiom == .phone ? "Battery" : "Battery Level": batteryChartColor, "Channel Utilization": channelUtilizationChartColor, "Airtime": airtimeChartColor ]) .chartLegend(position: .automatic, alignment: .bottom) } - .frame(minHeight: 250) + .frame(minHeight: 240) } let localeDateFormat = DateFormatter.dateFormat(fromTemplate: "yyMdjmma", options: 0, locale: Locale.current) let dateFormatString = (localeDateFormat ?? "M/d/YY j:mma").replacingOccurrences(of: ",", with: "") @@ -107,6 +107,7 @@ struct DeviceMetricsLog: View { .fontWeight(.semibold) Spacer() Image(systemName: "bolt") + .font(.caption) .symbolRenderingMode(.multicolor) Text("Volts \(String(format: "%.2f", dm.voltage)) ") .font(.caption2)