mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Remove padding from node hardware battery indicator, bump rssi and snr font back up to caption
This commit is contained in:
parent
f24a14bd19
commit
77739ce0f1
1 changed files with 5 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue