diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift b/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift index 9cf96ce..6a75a95 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/HostExecCard.swift @@ -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)