Skip to content

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

minor fix in menu ui

ammarahm-ed757cf7305396
diff --git a/apps/mobile/src/components/Menu/ColorSection.js b/apps/mobile/src/components/Menu/ColorSection.js
index 39e31035d..07c64b811 100644
--- a/apps/mobile/src/components/Menu/ColorSection.js
+++ b/apps/mobile/src/components/Menu/ColorSection.js
@@ -12,7 +12,7 @@ import {getElevation} from '../../utils';
import {COLORS_NOTE} from '../../utils/Colors';
import {db} from '../../utils/DB';
import {refreshNotesPage} from '../../utils/Events';
-import {SIZE} from '../../utils/SizeUtils';
+import {normalize, SIZE} from '../../utils/SizeUtils';
import {PressableButton} from '../PressableButton';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
@@ -85,7 +85,7 @@ const ColorItem = ({item, index}) => {
paddingHorizontal: 8,
justifyContent: 'space-between',
alignItems: 'center',
- height: 40,
+ height: normalize(50),
}}>
<View
style={{
@@ -129,7 +129,7 @@ const ColorItem = ({item, index}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(5),
+ ...getElevation(headerTextState?.id === item.id + '_navigation'? 5 : 0)
}}
/>
</PressableButton>
diff --git a/apps/mobile/src/components/Menu/MenuListItem.js b/apps/mobile/src/components/Menu/MenuListItem.js
index 154ed0f91..5630d77d3 100644
--- a/apps/mobile/src/components/Menu/MenuListItem.js
+++ b/apps/mobile/src/components/Menu/MenuListItem.js
@@ -5,7 +5,7 @@ import {useTracked} from '../../provider';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
import { getElevation } from '../../utils';
-import {SIZE} from '../../utils/SizeUtils';
+import {normalize, SIZE} from '../../utils/SizeUtils';
import {PressableButton} from '../PressableButton';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
@@ -64,7 +64,7 @@ export const MenuListItem = ({item, index, noTextMode, testID}) => {
paddingHorizontal: 8,
justifyContent: 'space-between',
alignItems: 'center',
- height: 45,
+ height:normalize(50),
}}>
<View
style={{
@@ -106,7 +106,7 @@ export const MenuListItem = ({item, index, noTextMode, testID}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(5)
+ ...getElevation(headerTextState?.id === item.name.toLowerCase() + '_navigation'? 5 : 0)
}}
/>
)}
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.js
index 3c7721a10..6b20510cb 100644
--- a/apps/mobile/src/components/Menu/TagsSection.js
+++ b/apps/mobile/src/components/Menu/TagsSection.js
@@ -14,7 +14,7 @@ import {getElevation} from '../../utils';
import {db} from '../../utils/DB';
import {refreshNotesPage} from '../../utils/Events';
import {rootNavigatorRef} from '../../utils/Refs';
-import {ph, pv, SIZE} from '../../utils/SizeUtils';
+import {normalize, ph, pv, SIZE} from '../../utils/SizeUtils';
import BaseDialog from '../Dialog/base-dialog';
import DialogButtons from '../Dialog/dialog-buttons';
import DialogHeader from '../Dialog/dialog-header';
@@ -173,7 +173,7 @@ const PinItem = ({item, index, onPress}) => {
width: '100%',
borderRadius: 0,
paddingHorizontal: 10,
- minHeight: 50,
+ minHeight: normalize(50),
}}>
<View
style={{
@@ -245,7 +245,7 @@ const PinItem = ({item, index, onPress}) => {
width: 7,
height: 7,
borderRadius: 100,
- ...getElevation(5),
+ ...getElevation(headerTextState?.id === item.id + '_navigation'? 5 : 0)
}}
/>
</PressableButton>