From 97af41e37967e7e494aeb7ce5d8032abbbfa2312 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Wed, 8 Jan 2020 11:25:26 +0500 Subject: [PATCH] ui: fix paddings --- .../mobile/src/components/EditorMenu/index.js | 1 + apps/mobile/src/components/Menu/index.js | 3 ++- apps/mobile/src/components/NoteItem/index.js | 6 ++--- .../src/components/NotebookItem/index.js | 3 ++- apps/mobile/src/components/NotesList/index.js | 3 ++- .../src/components/SearchInput/index.js | 6 ++--- apps/mobile/src/components/header/index.js | 8 +++--- apps/mobile/src/views/Editor/index.js | 26 ++++++++----------- apps/mobile/src/views/Home/index.js | 2 +- 9 files changed, 28 insertions(+), 30 deletions(-) diff --git a/apps/mobile/src/components/EditorMenu/index.js b/apps/mobile/src/components/EditorMenu/index.js index 728167d32..3da11aa90 100644 --- a/apps/mobile/src/components/EditorMenu/index.js +++ b/apps/mobile/src/components/EditorMenu/index.js @@ -8,6 +8,7 @@ import { FlatList, ActivityIndicator, KeyboardAvoidingView, + StatusBar, } from 'react-native'; import { SIZE, diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js index 55cd9cdc3..8e426c12e 100644 --- a/apps/mobile/src/components/Menu/index.js +++ b/apps/mobile/src/components/Menu/index.js @@ -45,9 +45,10 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => { /> { { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', - width: DDS.isTab ? '95%' : '90%', + paddingHorizontal: 12, + width: w - 12, alignSelf: 'center', borderRadius: br, height: '90%', borderWidth: props.hide ? 0 : 1.5, - paddingHorizontal: ph, borderColor: focus ? colors.accent : colors.nav, }}> { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', - width: '96%', + paddingHorizontal: 12, + width: '100%', alignSelf: 'center', - marginTop: Platform.OS == 'ios' ? h * 0.01 : h * 0.04, + height: 50, + marginTop: Platform.OS == 'ios' ? 0 : StatusBar.currentHeight, }}> { setDialog(true); }} style={{ - width: 40, + width: 50, height: 40, + justifyContent: 'center', + alignItems: 'flex-start', }}> - + { placeholderTextColor={colors.icon} defaultValue={title} style={{ - width: '80%', + width: '70%', fontFamily: WEIGHT.bold, fontSize: SIZE.xl, color: colors.pri, @@ -182,8 +179,7 @@ const Editor = ({navigation}) => { width: 40, height: 40, justifyContent: 'center', - alignItems: 'center', - paddingTop: 3, + alignItems: 'flex-end', }}> { }} activeOpacity={opacity} style={{ - width: DDS.isTab ? '95%' : '90%', + width: '95%', alignSelf: 'center', borderRadius: br, backgroundColor: colors.accent,