diff --git a/src/core_modules/capture-core/components/Pages/MainPage/MainPage.component.js b/src/core_modules/capture-core/components/Pages/MainPage/MainPage.component.js
index b5a98ec21e..a8a231281e 100644
--- a/src/core_modules/capture-core/components/Pages/MainPage/MainPage.component.js
+++ b/src/core_modules/capture-core/components/Pages/MainPage/MainPage.component.js
@@ -1,7 +1,7 @@
// @flow
import React, { useMemo } from 'react';
import { compose } from 'redux';
-import { spacers } from '@dhis2/ui';
+import { colors, spacers } from '@dhis2/ui';
import { withStyles } from '@material-ui/core/styles';
import { WorkingListsType } from './WorkingListsType';
import type { Props, PlainProps } from './mainPage.types';
@@ -21,13 +21,20 @@ const getStyles = () => ({
display: 'flex',
flexWrap: 'wrap',
gap: spacers.dp16,
+ padding: spacers.dp16,
},
half: {
flex: 1,
},
quarter: {
flex: 0.4,
- padding: `${spacers.dp12} ${spacers.dp24} ${spacers.dp24} 0`,
+ },
+ searchBoxWrapper: {
+ padding: spacers.dp16,
+ background: colors.white,
+ border: '1px solid',
+ borderColor: colors.grey400,
+ borderRadius: 3,
},
});
@@ -61,7 +68,7 @@ const MainPageBody = compose(
>
) : (
-
+
diff --git a/src/core_modules/capture-core/components/Pages/Search/SearchPage.component.js b/src/core_modules/capture-core/components/Pages/Search/SearchPage.component.js
index 857e8e6190..bf3c4bef8e 100644
--- a/src/core_modules/capture-core/components/Pages/Search/SearchPage.component.js
+++ b/src/core_modules/capture-core/components/Pages/Search/SearchPage.component.js
@@ -22,15 +22,17 @@ const getStyles = () => ({
},
half: {
flex: 1,
+ },
+ quarter: {
+ flex: 0.4,
+ },
+ searchBoxWrapper: {
padding: spacers.dp16,
background: colors.white,
border: '1px solid',
borderColor: colors.grey400,
borderRadius: 3,
},
- quarter: {
- flex: 0.4,
- },
});
const SearchPagePlain = ({ programId, orgUnitId, onNavigateToMainPage, classes }: PlainProps) => (
@@ -41,7 +43,7 @@ const SearchPagePlain = ({ programId, orgUnitId, onNavigateToMainPage, classes }
-
+
diff --git a/src/core_modules/capture-core/components/SearchBox/SearchForm/SearchForm.component.js b/src/core_modules/capture-core/components/SearchBox/SearchForm/SearchForm.component.js
index 0a1d2d84bf..08b6e97010 100644
--- a/src/core_modules/capture-core/components/SearchBox/SearchForm/SearchForm.component.js
+++ b/src/core_modules/capture-core/components/SearchBox/SearchForm/SearchForm.component.js
@@ -337,7 +337,7 @@ const SearchFormIndex = ({
},
[
classes.searchButtonContainer,
- classes.searchDomainSelectorSection,
+ classes.searchDomainsContainer,
classes.searchRowSelectElement,
classes.searchRow,
classes.textInfo,