Improve history item layout on phone
This commit is contained in:
parent
03735d9e72
commit
c049f9c9d6
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user