Make sizing more consistent

This commit is contained in:
Garth Vander Houwen 2022-11-11 07:41:30 -08:00
parent 13a51d030c
commit 57e48c6563

View file

@ -42,13 +42,10 @@ struct NodeList: View {
let connected: Bool = (bleManager.connectedPeripheral != nil && bleManager.connectedPeripheral.num == node.num)
VStack(alignment: .leading) {
HStack {
CircleText(text: node.user?.shortName ?? "???", color: .blue).offset(y: 1).padding(.trailing, 5)
CircleText(text: node.user?.shortName ?? "???", color: .blue, circleSize: 52, fontSize: 16).offset(y: 1).padding(.trailing, 5)
.offset(x: -15)
if UIDevice.current.userInterfaceIdiom == .pad { Text(node.user?.longName ?? "Unknown").font(.headline)
.offset(x: -15)
} else {
Text(node.user?.longName ?? "Unknown").font(.title2).offset(x: -15)
}
Text(node.user?.longName ?? "Unknown").font(.headline).offset(x: -15)
}
.padding(.bottom, 5)
if connected {