diff --git a/phpmon/Modules/PHP Config Editor/UI/ByteLimitView.swift b/phpmon/Modules/PHP Config Editor/UI/ByteLimitView.swift index 042a325..520c682 100644 --- a/phpmon/Modules/PHP Config Editor/UI/ByteLimitView.swift +++ b/phpmon/Modules/PHP Config Editor/UI/ByteLimitView.swift @@ -15,12 +15,13 @@ struct PreferenceContainer: View { var body: some View { VStack(alignment: .leading, spacing: 10) { - HStack(spacing: 50) { + HStack(alignment: .top, spacing: 50) { Text(self.name).bold() - controlView + VStack(alignment: .leading) { + controlView + Text(self.description).font(.subheadline) + } } - .frame(width: 300) - Text(self.description).font(.subheadline) } .padding(10) } diff --git a/phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift b/phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift index 299987b..f39cd97 100644 --- a/phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift +++ b/phpmon/Modules/PHP Config Editor/UI/ConfigManagerView.swift @@ -19,17 +19,42 @@ struct ConfigManagerView: View { .foregroundColor(Color.blue) .padding(12) VStack(alignment: .leading, spacing: 5) { - Text("config_manager.description".localizedForSwiftUI) + Text("confman.title".localizedForSwiftUI) + .bold() .font(.system(size: 12)) .frame(maxWidth: .infinity, alignment: .leading) - Text("config_manager.disclaimer".localizedForSwiftUI) + Text("confman.description".localizedForSwiftUI) .font(.system(size: 12)) - .frame(maxWidth: .infinity, alignment: .leading) + .fixedSize(horizontal: false, vertical: true) + .scaledToFit() + .lineLimit(4) } } .padding(10) Divider() + + VStack(spacing: 5) { + PreferenceContainer() + // PreferenceContainer() + // PreferenceContainer() + Divider() + HStack() { + Button("Close", action: { + + }) + Spacer() + Button("Restart PHP-FPM", action: { + + }) + } + .padding(10) + .frame( + minWidth: 0, + maxWidth: .infinity, + alignment: .topLeading + ) + } } } } @@ -37,7 +62,7 @@ struct ConfigManagerView: View { struct ConfigManagerView_Previews: PreviewProvider { static var previews: some View { ConfigManagerView() - .frame(width: 600, height: 480) + // .frame(width: 600, height: 480) .previewDisplayName("Config Manager") } } diff --git a/phpmon/en.lproj/Localizable.strings b/phpmon/en.lproj/Localizable.strings index b462968..e5d7730 100644 --- a/phpmon/en.lproj/Localizable.strings +++ b/phpmon/en.lproj/Localizable.strings @@ -81,6 +81,11 @@ "mi_xdebug_actions" = "Actions"; "mi_xdebug_disable_all" = "Disable All Modes"; +// CONFMAN + +"confman.title" = "PHP Config Editor"; +"confman.description" = "This utility lets you customize your PHP installation with ease. Changes are automatically applied as you change your configuration values."; + // PHPMAN "phpman.busy.title" = "Checking for updates!";