2.4.1 #7

Merged
rune merged 11 commits from 2.4.1 into main 2026-07-14 11:01:36 +02:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit bfcdd0164c - Show all commits
+7
View File
@@ -61,8 +61,15 @@ struct MarkdownContentView: View {
.markdownBlockStyle(\.paragraph) { configuration in .markdownBlockStyle(\.paragraph) { configuration in
configuration.label configuration.label
.markdownMargin(top: 0, bottom: 8) .markdownMargin(top: 0, bottom: 8)
// MarkdownUI builds mixed-style paragraphs (bold/italic runs alongside
// plain text) as concatenated Text(+) segments, which on macOS report
// their ideal (unwrapped, single-line) size instead of wrapping to the
// width actually available truncating with "" mid-word. Forcing the
// height to be recomputed for the given (flexible) width fixes it.
.fixedSize(horizontal: false, vertical: true)
} }
.textSelection(.enabled) .textSelection(.enabled)
.frame(maxWidth: .infinity, alignment: .leading)
} }
// MARK: - Parsing // MARK: - Parsing
+1
View File
@@ -185,6 +185,7 @@ struct MessageRow: View {
.foregroundColor(.oaiSecondary) .foregroundColor(.oaiSecondary)
} }
} }
.frame(maxWidth: .infinity, alignment: .leading)
} }
.padding(16) .padding(16)
.background(Color.messageBackground(for: message.role)) .background(Color.messageBackground(for: message.role))