From f485672d4e38cc1683fbb5c1694c4ef5dc6ad52d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 11 Sep 2023 13:28:48 -0700 Subject: [PATCH] macos: fix some error window styling --- .../Features/Settings/ConfigurationErrorsView.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/macos/Sources/Features/Settings/ConfigurationErrorsView.swift b/macos/Sources/Features/Settings/ConfigurationErrorsView.swift index 5f15e6a78..212354597 100644 --- a/macos/Sources/Features/Settings/ConfigurationErrorsView.swift +++ b/macos/Sources/Features/Settings/ConfigurationErrorsView.swift @@ -17,7 +17,7 @@ struct ConfigurationErrorsView: View { .frame(alignment: .center) Text(""" - ^[\(model.errors.count) error was](inflect: true) found while loading the configuration. \ + ^[\(model.errors.count) error(s) were](inflect: true) found while loading the configuration. \ Please review the errors below and reload your configuration. """) .frame(maxWidth: .infinity, alignment: .leading) @@ -26,18 +26,19 @@ struct ConfigurationErrorsView: View { GeometryReader { geo in ScrollView { - VStack { + VStack(alignment: .leading) { ForEach(model.errors, id: \.self) { error in Text(error) .lineLimit(nil) .font(.system(size: 12).monospaced()) .textSelection(.enabled) - .padding(.all) .frame(maxWidth: .infinity, alignment: .topLeading) } + Spacer() } - .frame(height: geo.size.height) + .padding(.all) + .frame(minHeight: geo.size.height) .background(Color.white) } }