Merge nucleic/jolly-kelp-marten-pn7t into dev
This commit is contained in:
@@ -175,15 +175,16 @@ struct HostCommandBreakdown: View {
|
||||
private func stepRow(_ inv: HostCommandSummary.Invocation) -> some View {
|
||||
let risky = inv.destructive || inv.elevated
|
||||
let tail = stepTail(inv)
|
||||
let headline = Text(inv.headline)
|
||||
.font(.caption.monospaced().weight(.semibold))
|
||||
.foregroundColor(.primary)
|
||||
let tailText = Text(tail.isEmpty ? "" : " " + tail)
|
||||
.font(.caption.monospaced())
|
||||
.foregroundColor(.secondary)
|
||||
return HStack(alignment: .firstTextBaseline, spacing: 8) {
|
||||
Image(systemName: stepGlyph(inv))
|
||||
.font(.caption2).foregroundStyle(risky ? Palette.danger : accent).frame(width: 14)
|
||||
(Text(inv.headline)
|
||||
.font(.caption.monospaced().weight(.semibold))
|
||||
.foregroundColor(.primary)
|
||||
+ Text(tail.isEmpty ? "" : " " + tail)
|
||||
.font(.caption.monospaced())
|
||||
.foregroundColor(.secondary))
|
||||
Text("\(headline)\(tailText)")
|
||||
.lineLimit(1).truncationMode(.middle)
|
||||
.textSelection(.enabled)
|
||||
Spacer(minLength: 0)
|
||||
|
||||
Reference in New Issue
Block a user