mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-07 19:29:57 +02:00
fix(apple): correct the device id row on the detail screen
The fingerprint row reused the no-name placeholder as its label, so it read "A nearby device — aaab1c58", and it duplicated the device id shown directly beneath it. Now one selectable full id, which is what someone comparing devices actually needs.
This commit is contained in:
@@ -263,14 +263,11 @@ struct ContactDetailScreen: View {
|
||||
|
||||
Section {
|
||||
// The endpoint id is the only real identity: two devices can
|
||||
// claim the same name, but not the same key.
|
||||
LabeledContent(String(localized: L10n.Approval.nearbyDevice)) {
|
||||
Text(contact.shortFingerprint)
|
||||
.font(.callout.monospaced())
|
||||
}
|
||||
} footer: {
|
||||
// claim the same name, but not the same key. Shown in full
|
||||
// and selectable so it can actually be compared.
|
||||
Text(L10n.Approval.endpointId(deviceId: contact.endpointId))
|
||||
.font(.caption2)
|
||||
.font(.caption.monospaced())
|
||||
.foregroundStyle(.secondary)
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user