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

@ -67,6 +67,11 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>Sesame Watch App.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
<key>Sesame-Watch Watch App.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
@ -75,12 +80,12 @@
<key>Sesame-WidgetExtension.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>0</integer>
</dict>
<key>Sesame.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>2</integer>
</dict>
</dict>
</dict>

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)