diff --git a/portal-ui/src/screens/Console/Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper.tsx b/portal-ui/src/screens/Console/Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper.tsx
index 16ca1805b..4fcbc761f 100644
--- a/portal-ui/src/screens/Console/Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper.tsx
+++ b/portal-ui/src/screens/Console/Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper.tsx
@@ -106,6 +106,8 @@ const styles = (theme: Theme) =>
borderBottom: "#9c9c9c 1px solid",
paddingBottom: 14,
marginBottom: 20,
+ maxWidth: 840,
+ margin: "0px auto",
},
indicatorLabel: {
fontSize: 12,
diff --git a/portal-ui/src/screens/Console/Common/FormComponents/PredefinedList/PredefinedList.tsx b/portal-ui/src/screens/Console/Common/FormComponents/PredefinedList/PredefinedList.tsx
index ea285fe8a..d206ce658 100644
--- a/portal-ui/src/screens/Console/Common/FormComponents/PredefinedList/PredefinedList.tsx
+++ b/portal-ui/src/screens/Console/Common/FormComponents/PredefinedList/PredefinedList.tsx
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { Fragment } from "react";
import Grid from "@material-ui/core/Grid";
import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
import { predefinedList } from "../common/styleLibrary";
@@ -22,24 +22,26 @@ const PredefinedList = ({
multiLine = false,
}: IPredefinedList) => {
return (
-
- {label !== "" && (
-
- {label}
-
- )}
-
-
- {content}
+
+
+ {label !== "" && (
+
+ {label}
+
+ )}
+
+
+ {content}
+
-
+
);
};
diff --git a/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts b/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
index 108663d8a..c9c784ab0 100644
--- a/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
+++ b/portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts
@@ -36,6 +36,8 @@ export const fieldBasic = {
fieldContainer: {
marginBottom: 20,
position: "relative" as const,
+ maxWidth: 840,
+ margin: "0px auto",
},
tooltipContainer: {
marginLeft: 5,
@@ -77,6 +79,8 @@ export const modalBasic = {
padding: "24px 50px",
overflowY: "auto" as const,
height: 170,
+ maxWidth: 840,
+ margin: "0 auto",
},
};
@@ -184,6 +188,11 @@ export const searchField = {
};
export const predefinedList = {
+ prefinedContainer: {
+ maxWidth: 840,
+ width: "100%",
+ margin: "0 auto",
+ },
predefinedTitle: {
fontSize: 16,
fontWeight: 600,
diff --git a/portal-ui/src/screens/Console/Configurations/CustomForms/ConfMySql.tsx b/portal-ui/src/screens/Console/Configurations/CustomForms/ConfMySql.tsx
index 87f7263d1..64064c76a 100644
--- a/portal-ui/src/screens/Console/Configurations/CustomForms/ConfMySql.tsx
+++ b/portal-ui/src/screens/Console/Configurations/CustomForms/ConfMySql.tsx
@@ -159,68 +159,70 @@ const ConfMySql = ({ onChange, classes }: IConfMySqlProps) => {
) : (
-
-
- ) => {
- setHostname(e.target.value);
- }}
- />
-
-
- ) => {
- setDbName(e.target.value);
- }}
- />
-
-
- ) => {
- setPort(e.target.value);
- }}
- />
-
+
+
+
+ ) => {
+ setHostname(e.target.value);
+ }}
+ />
+
+
+ ) => {
+ setDbName(e.target.value);
+ }}
+ />
+
+
+ ) => {
+ setPort(e.target.value);
+ }}
+ />
+
-
- ) => {
- setUser(e.target.value);
- }}
- />
-
-
- ) => {
- setPassword(e.target.value);
- }}
- />
+
+ ) => {
+ setUser(e.target.value);
+ }}
+ />
+
+
+ ) => {
+ setPassword(e.target.value);
+ }}
+ />
+
diff --git a/portal-ui/src/screens/Console/Configurations/CustomForms/ConfPostgres.tsx b/portal-ui/src/screens/Console/Configurations/CustomForms/ConfPostgres.tsx
index d49ac8385..8d1e5119b 100644
--- a/portal-ui/src/screens/Console/Configurations/CustomForms/ConfPostgres.tsx
+++ b/portal-ui/src/screens/Console/Configurations/CustomForms/ConfPostgres.tsx
@@ -232,87 +232,89 @@ const ConfPostgres = ({ onChange, classes }: IConfPostgresProps) => {
) : (
-
-
- ) => {
- setHostname(e.target.value);
- }}
- />
-
-
- ) => {
- setDbName(e.target.value);
- }}
- />
-
-
- ) => {
- setPort(e.target.value);
- }}
- />
-
-
- {
- if (e.target.value !== undefined) {
- setSslMode(e.target.value + "");
- }
- }}
- options={[
- { label: "Enter SSL Mode", value: " " },
- { label: "Require", value: "require" },
- { label: "Disable", value: "disable" },
- { label: "Verify CA", value: "verify-ca" },
- { label: "Verify Full", value: "verify-full" },
- ]}
- />
-
-
- ) => {
- setUser(e.target.value);
- }}
- />
-
-
- ) => {
- setPassword(e.target.value);
- }}
- />
+
+
+
+ ) => {
+ setHostname(e.target.value);
+ }}
+ />
+
+
+ ) => {
+ setDbName(e.target.value);
+ }}
+ />
+
+
+ ) => {
+ setPort(e.target.value);
+ }}
+ />
+
+
+ {
+ if (e.target.value !== undefined) {
+ setSslMode(e.target.value + "");
+ }
+ }}
+ options={[
+ { label: "Enter SSL Mode", value: " " },
+ { label: "Require", value: "require" },
+ { label: "Disable", value: "disable" },
+ { label: "Verify CA", value: "verify-ca" },
+ { label: "Verify Full", value: "verify-full" },
+ ]}
+ />
+
+
+ ) => {
+ setUser(e.target.value);
+ }}
+ />
+
+
+ ) => {
+ setPassword(e.target.value);
+ }}
+ />
+