Add Markdown Formatting
Nucleic-Session: 23936B4B-52E9-43F5-908B-C7919A5BD6DD Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -59,10 +59,14 @@ struct HostExecToolCard: View {
|
|||||||
.font(.caption).foregroundStyle(Palette.accent).frame(width: 16)
|
.font(.caption).foregroundStyle(Palette.accent).frame(width: 16)
|
||||||
VStack(alignment: .leading, spacing: 3) {
|
VStack(alignment: .leading, spacing: 3) {
|
||||||
HStack(alignment: .firstTextBaseline, spacing: 6) {
|
HStack(alignment: .firstTextBaseline, spacing: 6) {
|
||||||
Text("Host").font(.caption.weight(.semibold))
|
Text("HOST").font(.caption2.weight(.bold)).foregroundStyle(Palette.accent)
|
||||||
if let parsed {
|
if let parsed {
|
||||||
|
// The command-derived purpose leads as the bold headline; "HOST" is just a
|
||||||
|
// quiet tag (the desktop glyph already marks it as a host call).
|
||||||
Text(MessageBubble.markdown(parsed.purpose))
|
Text(MessageBubble.markdown(parsed.purpose))
|
||||||
.font(.caption).lineLimit(1).truncationMode(.tail)
|
.font(.callout.weight(.semibold)).lineLimit(1).truncationMode(.tail)
|
||||||
|
} else {
|
||||||
|
Text("Host").font(.callout.weight(.semibold))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
HStack(alignment: .firstTextBaseline, spacing: 5) {
|
||||||
|
|||||||
Reference in New Issue
Block a user