diff --git a/services/frontend/src/components/Modal/Network/Create.tsx b/services/frontend/src/components/Modal/Network/Create.tsx index 455e673..df9aac3 100644 --- a/services/frontend/src/components/Modal/Network/Create.tsx +++ b/services/frontend/src/components/Modal/Network/Create.tsx @@ -79,31 +79,32 @@ const NetworkCreate = (props: INetworkCreateProps) => { > {(formik) => ( <> -
-
- -
+
+
diff --git a/services/frontend/src/components/Modal/Network/Edit.tsx b/services/frontend/src/components/Modal/Network/Edit.tsx index ede89a5..40cafa8 100644 --- a/services/frontend/src/components/Modal/Network/Edit.tsx +++ b/services/frontend/src/components/Modal/Network/Edit.tsx @@ -82,31 +82,32 @@ const NetworkEdit = (props: INetworkEditProps) => { > {(formik) => ( <> -
-
- -
+
+
diff --git a/services/frontend/src/components/Modal/Service/Edit.tsx b/services/frontend/src/components/Modal/Service/Edit.tsx index 06c765a..9869d61 100644 --- a/services/frontend/src/components/Modal/Service/Edit.tsx +++ b/services/frontend/src/components/Modal/Service/Edit.tsx @@ -100,34 +100,32 @@ const ModalServiceEdit = (props: IModalServiceProps) => { > {(formik) => ( <> -
- +
diff --git a/services/frontend/src/components/Modal/Service/General.tsx b/services/frontend/src/components/Modal/Service/General.tsx index 5469120..60b1df8 100644 --- a/services/frontend/src/components/Modal/Service/General.tsx +++ b/services/frontend/src/components/Modal/Service/General.tsx @@ -15,6 +15,9 @@ const Fields = styled("div")` const ImageNameGroup = styled("div")` display: flex; flex-direction: row; + @media (max-width: 640px) { + flex-direction: column; + } column-gap: ${({ theme }) => theme.spacing(1)}; width: 100%; `; @@ -31,6 +34,7 @@ const GroupTitle = styled("h5")` font-weight: 500; width: 100%; text-align: left; + margin-bottom: 0.25em; `; const Records = styled("div")` @@ -80,12 +84,7 @@ const General = () => { - + { > {(formik) => ( <> -
- +
diff --git a/services/frontend/src/components/Projects/index.tsx b/services/frontend/src/components/Projects/index.tsx index bdf8551..7ebe1e1 100644 --- a/services/frontend/src/components/Projects/index.tsx +++ b/services/frontend/src/components/Projects/index.tsx @@ -5,6 +5,7 @@ import { IProject } from "../../types"; import Spinner from "../../components/global/Spinner"; import PreviewBlock from "./PreviewBlock"; import { useProjects } from "../../hooks/useProjects"; +import { PlusIcon } from "@heroicons/react/outline"; const Projects = () => { const [limit] = useState(PROJECTS_FETCH_LIMIT); @@ -22,22 +23,24 @@ const Projects = () => { Projects - - Create new project - + {data && data.results.length > 0 && ( + + Create new project + + )}
- {isFetching && ( + {(isFetching || isLoading) && (
)} - {!isFetching && ( + {!isFetching && !isLoading && ( <>
{error && ( @@ -70,22 +73,23 @@ const Projects = () => { minHeight: "calc(100vh - 120px)" }} > - -

- We tried our best, but could not find any projects. +

+ No projects +

+

+ Get started by creating a new project.

- - Create new project - +
+ + + + +
)}
diff --git a/services/frontend/src/components/Record.tsx b/services/frontend/src/components/Record.tsx index 4444a0c..b273fe7 100644 --- a/services/frontend/src/components/Record.tsx +++ b/services/frontend/src/components/Record.tsx @@ -28,6 +28,9 @@ const Root = styled("div")` justify-content: flex-start; align-items: flex-start; column-gap: ${({ theme }) => theme.spacing(2)}; + @media (max-width: 768px) { + column-gap: ${({ theme }) => theme.spacing(1)}; + } `; const RemoveButton = styled(IconButton)``; diff --git a/services/frontend/src/components/global/FormElements/TextField.tsx b/services/frontend/src/components/global/FormElements/TextField.tsx index 89ba3bc..c5cd5d5 100644 --- a/services/frontend/src/components/global/FormElements/TextField.tsx +++ b/services/frontend/src/components/global/FormElements/TextField.tsx @@ -12,6 +12,7 @@ export interface ITextFieldProps { const Root = styled("div")` display: flex; flex-direction: column; + width: 100%; `; const TextField: FunctionComponent = ( @@ -25,10 +26,7 @@ const TextField: FunctionComponent = ( return ( {label && ( -