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 {
|
private func stepRow(_ inv: HostCommandSummary.Invocation) -> some View {
|
||||||
let risky = inv.destructive || inv.elevated
|
let risky = inv.destructive || inv.elevated
|
||||||
let tail = stepTail(inv)
|
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) {
|
return HStack(alignment: .firstTextBaseline, spacing: 8) {
|
||||||
Image(systemName: stepGlyph(inv))
|
Image(systemName: stepGlyph(inv))
|
||||||
.font(.caption2).foregroundStyle(risky ? Palette.danger : accent).frame(width: 14)
|
.font(.caption2).foregroundStyle(risky ? Palette.danger : accent).frame(width: 14)
|
||||||
(Text(inv.headline)
|
Text("\(headline)\(tailText)")
|
||||||
.font(.caption.monospaced().weight(.semibold))
|
|
||||||
.foregroundColor(.primary)
|
|
||||||
+ Text(tail.isEmpty ? "" : " " + tail)
|
|
||||||
.font(.caption.monospaced())
|
|
||||||
.foregroundColor(.secondary))
|
|
||||||
.lineLimit(1).truncationMode(.middle)
|
.lineLimit(1).truncationMode(.middle)
|
||||||
.textSelection(.enabled)
|
.textSelection(.enabled)
|
||||||
Spacer(minLength: 0)
|
Spacer(minLength: 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user