Remove padding from node hardware battery indicator, bump rssi and snr font back up to caption

This commit is contained in:
Garth Vander Houwen 2024-08-03 16:11:11 -07:00
parent f24a14bd19
commit 77739ce0f1

View file

@ -32,11 +32,11 @@ struct NodeInfoItem: View {
Image(user.hardwareImage ?? "UNSET")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 75, height: 75)
.frame(width: 65, height: 65)
.cornerRadius(5)
Text(String(node.user!.hwModel ?? "unset".localized))
.font(.caption2)
.frame(maxWidth: 100)
.frame(maxWidth: 80)
} else {
Image(systemName: "person.crop.circle.badge.questionmark")
.resizable()
@ -57,20 +57,18 @@ struct NodeInfoItem: View {
Text("Signal \(signalStrength.description)").font(.footnote)
Text("SNR \(String(format: "%.2f", node.snr))dB")
.foregroundColor(getSnrColor(snr: node.snr, preset: modemPreset))
.font(.caption2)
.font(.caption)
Text("RSSI \(node.rssi)dB")
.foregroundColor(getRssiColor(rssi: node.rssi))
.font(.caption2)
.font(.caption)
}
.frame(minWidth: 100, maxWidth: 140)
.frame(minWidth: 110, maxWidth: 175)
}
if node.telemetries?.count ?? 0 > 0 {
BatteryGauge(node: node)
.padding()
}
Spacer()
}
.padding(.leading)
}
}