Tool Call Card Alignment
Nucleic-Session: FFDE42E0-22AB-4478-B2E2-FF69B2753CEE Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -50,6 +50,21 @@ struct GitCommitCard: View {
|
|||||||
.overlay(RoundedRectangle(cornerRadius: 8).strokeBorder(accent.opacity(0.16), lineWidth: 1))
|
.overlay(RoundedRectangle(cornerRadius: 8).strokeBorder(accent.opacity(0.16), lineWidth: 1))
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 8))
|
.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
|
/// A disclosure that reveals the literal shell command beneath a structured command card — so a
|
||||||
|
|||||||
Reference in New Issue
Block a user