Skip to content

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

fix height of colors in menu

ammarahm-edace7c1d89508
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index 482c68bb7..9b2d4d77a 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -43,24 +43,24 @@ const App = () => {
const startSyncer = async () => {
let user = await db.user.get();
if (user) {
- db.ev.subscribe('sync',async () => {
- dispatch({type: ACTIONS.SYNCING, syncing:true});
+ db.ev.subscribe('sync', async () => {
+ dispatch({type: ACTIONS.SYNCING, syncing: true});
await db.sync();
let u = await db.user.get();
dispatch({type: ACTIONS.USER, user: u});
dispatch({type: ACTIONS.ALL});
- dispatch({type: ACTIONS.SYNCING, syncing:false});
- })
+ dispatch({type: ACTIONS.SYNCING, syncing: false});
+ });
}
- }
+ };
useEffect(() => {
- eSubscribeEvent(eStartSyncer, startSyncer)
+ eSubscribeEvent(eStartSyncer, startSyncer);
return () => {
- eUnSubscribeEvent(eStartSyncer,startSyncer)
- }
- })
+ eUnSubscribeEvent(eStartSyncer, startSyncer);
+ };
+ });
useEffect(() => {
Initialize().then(() => {
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index bb433481c..458b1e84e 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -364,11 +364,7 @@ export const Menu = ({
<View
style={{
- flexDirection: 'column',
- flexWrap: noTextMode ? 'nowrap' : 'wrap',
- marginTop: pv / 2,
width: '100%',
- marginBottom: pv / 2,
paddingHorizontal: 10,
}}>
{colorNotes.map(item => (
@@ -389,11 +385,8 @@ export const Menu = ({
flexDirection: 'row',
justifyContent: noTextMode ? 'center' : 'flex-start',
alignItems: 'center',
- margin: noTextMode ? 0 : 5,
- marginLeft: 0,
width: '100%',
- marginRight: noTextMode ? 0 : 15,
- marginTop: normalize(15),
+ paddingVertical:pv
}}>
<View
style={{