From 77ca4d1d67f98d069fa925f51d2680a71f1e828b Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sat, 13 Jun 2026 21:25:57 -0700 Subject: [PATCH] Wrap long permission request text in approval UIs The macOS ApprovalBar put the title and action buttons on one row, so a long file-path title got truncated. Stack title above the buttons so it wraps to as many lines as needed. Bump the iOS card's input summary cap from 3 to 8 lines. Both made text-selectable. Co-Authored-By: Claude Opus 4.8 --- NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift b/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift index acc960b..c1405eb 100644 --- a/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift +++ b/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift @@ -35,7 +35,8 @@ struct ApprovalCardView: View { } Text(approval.input.compactSummary) .font(.caption.monospaced()) - .lineLimit(3) + .lineLimit(8) + .textSelection(.enabled) .padding(8) .frame(maxWidth: .infinity, alignment: .leading) .background(Color(.secondarySystemBackground), in: RoundedRectangle(cornerRadius: 8))