From 2485a78137c3edd44d76a92b8706b94438cc39fc Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sun, 5 Jul 2026 19:43:29 -0700 Subject: [PATCH] Tool Call Card Alignment Nucleic-Session: FFDE42E0-22AB-4478-B2E2-FF69B2753CEE Co-authored-by: Nucleic --- .../Views/Transcript/GitCommitCard.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/GitCommitCard.swift b/NucleicRemote/NucleicRemote/Views/Transcript/GitCommitCard.swift index 71d3ee4..073721e 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/GitCommitCard.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/GitCommitCard.swift @@ -50,6 +50,21 @@ struct GitCommitCard: View { .overlay(RoundedRectangle(cornerRadius: 8).strokeBorder(accent.opacity(0.16), lineWidth: 1)) .clipShape(RoundedRectangle(cornerRadius: 8)) } + + /// The result text beneath the commit (e.g. the new hash a trailing `git log` prints), in the + /// muted monospaced style the Mac's `GitBlockCard.outputRow` uses. + private func outputRow(_ output: String) -> some View { + HStack(alignment: .top, spacing: 9) { + Image(systemName: "arrow.turn.down.right") + .font(.caption2).foregroundStyle(.tertiary).frame(width: 16) + Text(output) + .font(.system(.caption, design: .monospaced)) + .foregroundStyle(.secondary) + .lineLimit(3).truncationMode(.tail) + .textSelection(.enabled) + Spacer(minLength: 0) + } + } } /// A disclosure that reveals the literal shell command beneath a structured command card — so a