Improve history item layout on phone

This commit is contained in:
Christoph Hagen
2024-01-14 12:48:43 +01:00
parent 03735d9e72
commit c049f9c9d6
2 changed files with 11 additions and 12 deletions

View File

@ -22,12 +22,8 @@ struct HistoryListItem: View {
"\(Int(entry.roundTripTime * 1000)) ms"
}
var clientNonceText: String {
"\(entry.message.clientChallenge)"
}
var serverNonceText: String {
"\(entry.message.serverChallenge)"
var noncesText: String {
"\(entry.message.clientChallenge)\(entry.message.serverChallenge)"
}
var body: some View {
@ -42,10 +38,8 @@ struct HistoryListItem: View {
HStack {
Image(systemSymbol: .arrowUpArrowDownCircle)
Text(roundTripText).padding(.trailing)
Image(systemSymbol: .lockIphone)
Text(clientNonceText).padding(.trailing)
Image(systemSymbol: .doorRightHandClosed)
Text(serverNonceText).padding(.trailing)
Image(systemSymbol: .keyHorizontal)
Text(noncesText)
}
.foregroundColor(.secondary)
.font(.footnote)