diff --git a/services/frontend/src/components/Modal/service/Create.tsx b/services/frontend/src/components/Modal/service/Create.tsx index 07f55e5..fb8237c 100644 --- a/services/frontend/src/components/Modal/service/Create.tsx +++ b/services/frontend/src/components/Modal/service/Create.tsx @@ -11,6 +11,7 @@ import { getInitialValues, validationSchema } from "./form-utils"; +import { styled } from "@mui/joy"; interface IModalServiceProps { onHide: CallbackFunction; @@ -44,6 +45,38 @@ const tabs = [ } ]; +const FormContainer = styled("div")` + width: 640px; + height: 800px; + display: flex; + flex-direction: column; + justify-content: space-between; +`; + +const TabBody = styled("div")` + overflow: auto; + height: 700px; + + ::-webkit-scrollbar { + width: 4px; + } + + /* Track */ + ::-webkit-scrollbar-track { + background: #f1f1f1; + } + + /* Handle */ + ::-webkit-scrollbar-thumb { + background: #888; + } + + /* Handle on hover */ + ::-webkit-scrollbar-thumb:hover { + background: #555; + } +`; + const ModalServiceCreate = (props: IModalServiceProps) => { const { onHide, onAddEndpoint } = props; const [openTab, setOpenTab] = useState("General"); @@ -87,40 +120,42 @@ const ModalServiceCreate = (props: IModalServiceProps) => { validationSchema={validationSchema} > {(formik) => ( - <> -
- -
+ +
+
+ +
-
- {openTab === "General" && } - {openTab === "Environment" && } - {openTab === "Volumes" && } - {openTab === "Labels" && } + + {openTab === "General" && } + {openTab === "Environment" && } + {openTab === "Volumes" && } + {openTab === "Labels" && } +
@@ -132,7 +167,7 @@ const ModalServiceCreate = (props: IModalServiceProps) => { Add
- + )}