Fix update error details dialog overflow (#2359)

This commit is contained in:
Austin Wang 2026-03-30 03:05:48 -07:00 committed by GitHub
parent ae59e571a8
commit 6a39bac0e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -469,12 +469,16 @@ fileprivate struct UpdateErrorView: View {
VStack(alignment: .leading, spacing: 6) {
Text(String(localized: "update.popover.details", defaultValue: "Details"))
.font(.system(size: 11, weight: .semibold))
ScrollView(.vertical) {
Text(details)
.font(.system(size: 10, design: .monospaced))
.foregroundColor(.secondary)
.fixedSize(horizontal: false, vertical: true)
.frame(maxWidth: .infinity, alignment: .leading)
.textSelection(.enabled)
}
.frame(maxHeight: 300)
}
HStack(spacing: 8) {
Button(String(localized: "common.copyDetails", defaultValue: "Copy Details")) {