diff --git a/src/dashboard/home-dashboard.component.css b/src/dashboard/home-dashboard.component.css index 8e317cbf4..df80bd831 100644 --- a/src/dashboard/home-dashboard.component.css +++ b/src/dashboard/home-dashboard.component.css @@ -1,20 +1,22 @@ .homeDashboard { - height: calc(100vh - var(--omrs-topnav-height) - 2rem); + height: calc(100vh - var(--omrs-topnav-height) - 10rem); display: flex; - flex-direction: column; - align-items: center; + justify-content: center; margin: 0 auto; } .mainSection { min-height: 60vh; display: flex; + justify-content: center; align-items: center; + flex-grow: 1; } .label { color: var(--omrs-color-interaction); margin-left: 0.25rem; + text-align: center; } .logoSection { @@ -23,3 +25,17 @@ align-items: center; height: 100%; } + +@media only screen and (min-width: 720px) { + .dashboardLink { + width: 40%; + justify-content: center; + } +} + +@media only screen and (max-width: 720px) { + .dashboardLink { + width: 80%; + justify-content: center; + } +} diff --git a/src/dashboard/home-dashboard.component.tsx b/src/dashboard/home-dashboard.component.tsx index bf572ec8b..bd40a3dd3 100644 --- a/src/dashboard/home-dashboard.component.tsx +++ b/src/dashboard/home-dashboard.component.tsx @@ -5,26 +5,28 @@ import { UserHasAccessReact } from "@openmrs/esm-api"; export default function HomeDashboard(props: HomeDashboardProps) { return ( -
-
- - - - - - Search for patient - - -
+ <> +
+
+ + + + + + Search for patient + + +
+
-
+ ); }