Compare commits

..

2 Commits

Author SHA1 Message Date
Christoph Hagen
877bba56b4 Remove images for website 2024-01-14 12:50:25 +01:00
Christoph Hagen
c049f9c9d6 Improve history item layout on phone 2024-01-14 12:48:43 +01:00
3 changed files with 11 additions and 12 deletions

Binary file not shown.

View File

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

View File

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