Add Markdown Formatting
Nucleic-Session: 23936B4B-52E9-43F5-908B-C7919A5BD6DD Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -69,7 +69,9 @@ struct HostExecToolCard: View {
|
|||||||
Text("$").font(.caption.monospaced()).foregroundStyle(Palette.accent.opacity(0.7))
|
Text("$").font(.caption.monospaced()).foregroundStyle(Palette.accent.opacity(0.7))
|
||||||
Text(command)
|
Text(command)
|
||||||
.font(.caption.monospaced()).foregroundStyle(.secondary)
|
.font(.caption.monospaced()).foregroundStyle(.secondary)
|
||||||
.lineLimit(expanded ? nil : 1).truncationMode(.middle)
|
// Expanded, the literal stays bounded — a long chain's command is itself
|
||||||
|
// long, and the compact step list above carries the structure.
|
||||||
|
.lineLimit(expanded ? 6 : 1).truncationMode(.middle)
|
||||||
.textSelection(.enabled)
|
.textSelection(.enabled)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user