diff --git a/frontend/src/App.scss b/frontend/src/App.scss index 918a87097..96a730d61 100644 --- a/frontend/src/App.scss +++ b/frontend/src/App.scss @@ -216,7 +216,7 @@ .table-wrapper { background-color: white; padding: 24px; - + width: 100%; .ant-form { &.ant-form-horizontal { .ant-form-item { diff --git a/frontend/src/pages/control-center/ControlCenter.jsx b/frontend/src/pages/control-center/ControlCenter.jsx index 9de91ac25..2ac3c27b0 100644 --- a/frontend/src/pages/control-center/ControlCenter.jsx +++ b/frontend/src/pages/control-center/ControlCenter.jsx @@ -25,18 +25,22 @@ const ControlCenter = () => { key: "approvals", access: "approvals", render: ( - - - +
+ + + +
), }, { key: "submission", access: "form", render: ( - - - +
+ + + +
), }, ]; @@ -46,7 +50,6 @@ const ControlCenter = () => { if (!authUser?.role_detail) { return []; } - const panelOrder = roles.find( (r) => r.id === authUser.role_detail.id )?.control_center_order; @@ -107,44 +110,42 @@ const ControlCenter = () => {
-
- - {selectedPanels.map((panel, index) => { - if (panel?.render) { - return panel.render; - } - const cardOnly = selectedPanels.filter((x) => !x?.render); - const isFullWidth = - cardOnly.length === 1 || - (selectedPanels.length % 2 === 1 && - selectedPanels.length - 1 === index); - return ( - -
-
-
-

{panel?.title}

- {panel?.description} - - - -
-
- -
+ + {selectedPanels.map((panel, index) => { + if (panel?.render) { + return panel.render; + } + const cardOnly = selectedPanels.filter((x) => !x?.render); + const isFullWidth = + cardOnly.length === 1 || + (selectedPanels.length % 2 === 1 && + selectedPanels.length - 1 === index); + return ( + +
+
+
+

{panel?.title}

+ {panel?.description} + + + +
+
+
- - ); - })} - -
+
+ + ); + })} +
);