From c852a68f289193cf493139e1e17a59cd7cfab1b7 Mon Sep 17 00:00:00 2001 From: cdricms <36056008+cdricms@users.noreply.github.com> Date: Fri, 7 Aug 2026 10:59:00 +0200 Subject: [PATCH] fix(apple): correct the device id row on the detail screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- apple/VniDrop/Features/Contacts/ContactsScreen.swift | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/apple/VniDrop/Features/Contacts/ContactsScreen.swift b/apple/VniDrop/Features/Contacts/ContactsScreen.swift index c60588d..535f0fb 100644 --- a/apple/VniDrop/Features/Contacts/ContactsScreen.swift +++ b/apple/VniDrop/Features/Contacts/ContactsScreen.swift @@ -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) }