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:
2026-08-07 10:59:00 +02:00
parent 225ff9ad22
commit c852a68f28

View File

@@ -263,14 +263,11 @@ struct ContactDetailScreen: View {
Section { Section {
// The endpoint id is the only real identity: two devices can // The endpoint id is the only real identity: two devices can
// claim the same name, but not the same key. // claim the same name, but not the same key. Shown in full
LabeledContent(String(localized: L10n.Approval.nearbyDevice)) { // and selectable so it can actually be compared.
Text(contact.shortFingerprint)
.font(.callout.monospaced())
}
} footer: {
Text(L10n.Approval.endpointId(deviceId: contact.endpointId)) Text(L10n.Approval.endpointId(deviceId: contact.endpointId))
.font(.caption2) .font(.caption.monospaced())
.foregroundStyle(.secondary)
.textSelection(.enabled) .textSelection(.enabled)
} }