1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

👌 Fix WarningView styling

This commit is contained in:
2022-08-01 21:18:20 +02:00
parent 1bff75311b
commit 8b6267f411
2 changed files with 17 additions and 6 deletions

View File

@ -18,12 +18,13 @@ struct WarningView: View {
.resizable()
.frame(width: 25, height: 25)
.padding()
VStack(alignment: .leading) {
Text(title)
.foregroundColor(Color.orange)
VStack(alignment: .leading, spacing: 5) {
Text(title.localizedForSwiftUI)
.fontWeight(.bold)
.padding(.bottom, 1)
Text(description)
Text(description.localizedForSwiftUI)
.font(.body)
}
}.padding()
}
@ -32,8 +33,13 @@ struct WarningView: View {
struct WarningView_Previews: PreviewProvider {
static var previews: some View {
WarningView(
title: "Helpers not written",
description: "The helper files in `/usr/local/bin` could not be written because PHP Monitor does not have permission to write there."
title: "warnings.helper_permissions_title",
description: "warnings.helper_permissions.description"
)
WarningView(
title: "warnings.helper_permissions_title",
description: "warnings.helper_permissions.description"
)
.preferredColorScheme(.dark)
}
}

View File

@ -504,6 +504,11 @@ If you are seeing this message but are confused why this folder has gone missing
"alert.warnings.tld_issue.subtitle" = "Using a non-default TLD may not work correctly and is not officially supported.";
"alert.warnings.tld_issue.description" = "PHP Monitor will remain functional, but there might be issues: the app might not correctly show which domains have been secured. For optimal results, go to your Valet configuration file (config.json in the Valet directory) and change the TLD back to `test`.";
// WARNINGS
"warnings.helper_permissions_title" = "Helpers could not be written!";
"warnings.helper_permissions.description" = "The helper files in `/usr/local/bin` could not be written because PHP Monitor does not have permission to write there.";
// ONBOARDING
"onboarding.title" = "Welcome Tour";