Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix header styling

ammarahm-edd7ecf9c8de0a
diff --git a/apps/mobile/src/components/Header/HeaderRightMenu.js b/apps/mobile/src/components/Header/HeaderRightMenu.js
index 629069598..9d8f30315 100644
--- a/apps/mobile/src/components/Header/HeaderRightMenu.js
+++ b/apps/mobile/src/components/Header/HeaderRightMenu.js
@@ -60,45 +60,11 @@ const styles = StyleSheet.create({
paddingHorizontal: 12,
width: '100%',
},
- loadingContainer: {
- alignSelf: 'center',
- alignItems: 'center',
- justifyContent: 'center',
- zIndex: 999,
- left: dWidth / 2 - 20,
- top: -20,
- width: 40,
- height: 40,
- position: 'absolute',
- },
- loadingInnerContainer: {
- width: 40,
- height: 20,
- position: 'absolute',
- zIndex: 10,
- top: 0,
- },
- leftBtnContainer: {
- flexDirection: 'row',
- justifyContent: 'flex-start',
- alignItems: 'center',
- position: 'absolute',
- left: 12,
- },
- leftBtn: {
- justifyContent: 'center',
- alignItems: 'center',
- height: 40,
- width: 40,
- borderRadius: 100,
- marginLeft: -5,
- marginRight: 25,
- },
rightBtnContainer: {
flexDirection: 'row',
alignItems: 'center',
position: 'absolute',
- right: 12,
+ right: 6,
},
rightBtn: {
justifyContent: 'center',
diff --git a/apps/mobile/src/components/Header/index.js b/apps/mobile/src/components/Header/index.js
index 227f1e7fc..0c244db82 100644
--- a/apps/mobile/src/components/Header/index.js
+++ b/apps/mobile/src/components/Header/index.js
@@ -69,7 +69,7 @@ export const Header = ({root}) => {
) : null}
{currentScreen === 'search' ? (
- <View style={styles.rightBtnContainer}>
+ <View style={[styles.rightBtnContainer,{right:6}]}>
<ActionIcon
onPress={async () => {
Navigation.navigate('Search',{
diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.js
index ef9b27a1b..23e5e01af 100644
--- a/apps/mobile/src/components/SearchInput/index.js
+++ b/apps/mobile/src/components/SearchInput/index.js
@@ -41,9 +41,7 @@ export const SearchInput = (props) => {
justifyContent: 'space-between',
alignItems: 'center',
alignSelf: 'center',
- height: normalize(50),
- borderRadius: 5,
- width: '100%',
+ height: 50,
paddingHorizontal: 12,
},
props.customStyle,
@@ -57,8 +55,9 @@ export const SearchInput = (props) => {
flexGrow: 1,
flex: 1,
flexWrap: 'wrap',
- paddingVertical:0,
- padding:0
+ padding:0,
+ margin:0,
+ marginBottom:5,
}}
onChangeText={onChangeText}
numberOfLines={1}