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