A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
some minor fixes in navigation on tablet
ammarahm-edac322a5e4071
diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.jsindex e1ca87785..bb34c1340 100644--- a/apps/mobile/src/components/LoginDialog/index.js+++ b/apps/mobile/src/components/LoginDialog/index.js@@ -590,6 +590,7 @@ const LoginDialog = () => {<Headercolor="transparent"type="login"+ noAnnouncement={true}shouldShowtitle={current.headerButton}messageCard={false}diff --git a/apps/mobile/src/components/SimpleList/card.js b/apps/mobile/src/components/SimpleList/card.jsindex fbfc7649a..d8c37406f 100644--- a/apps/mobile/src/components/SimpleList/card.js+++ b/apps/mobile/src/components/SimpleList/card.js@@ -2,7 +2,7 @@ import React from 'react';import { TouchableOpacity, View } from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import { notesnook } from '../../../e2e/test.ids';-import { useMessageStore, useSelectionStore } from '../../provider/stores';+import { useMessageStore, useSelectionStore, useSettingStore } from '../../provider/stores';import { DDS } from '../../services/DeviceDetection';import { getElevation } from '../../utils';import { SIZE } from '../../utils/SizeUtils';@@ -12,6 +12,7 @@ export const Card = ({color}) => {;const selectionMode = useSelectionStore(state => state.selectionMode);const messageBoardState = useMessageStore(state => state.message);const announcement = useMessageStore().announcement;+ const deviceMode = useSettingStore(state => state.settings)return !messageBoardState.visible || selectionMode || announcement ? null : (<TouchableOpacity@@ -22,7 +23,7 @@ export const Card = ({color}) => {;flexDirection: 'row',alignItems: 'center',justifyContent: 'flex-start',- position: DDS.isLargeTablet() || announcement ? 'relative' : 'absolute',+ position: deviceMode !== "mobile" || announcement ? 'relative' : 'absolute',right: 0,top: 0,zIndex: 100,diff --git a/apps/mobile/src/components/SimpleList/header.js b/apps/mobile/src/components/SimpleList/header.jsindex 0a1e50920..8934847e9 100644--- a/apps/mobile/src/components/SimpleList/header.js+++ b/apps/mobile/src/components/SimpleList/header.js@@ -1,7 +1,7 @@import React from 'react';import {View} from 'react-native';import {useTracked} from '../../provider';-import {useMessageStore} from '../../provider/stores';+import {useMessageStore, useSettingStore} from '../../provider/stores';import {DDS} from '../../services/DeviceDetection';import {COLORS_NOTE} from '../../utils/Colors';import {hexToRGBA} from '../../utils/ColorUtils';@@ -24,14 +24,15 @@ export const Header = React.memo(shouldShow = false,icon,screen,+ noAnnouncement}) => {const [state] = useTracked();const {colors} = state;- const announcement = useMessageStore().announcement;-- return announcement ? (+ const announcement = useMessageStore(state => state.announcement)+ const deviceMode = useSettingStore(state => state.deviceMode)+ return announcement && !noAnnouncement ? (<Announcement color={color || colors.accent} />- ) : type === 'search' ? null : DDS.isLargeTablet() && !shouldShow ? (+ ) : type === 'search' ? null : deviceMode !== "mobile" && !shouldShow ? (<Viewstyle={{minHeight: 50,diff --git a/apps/mobile/src/components/SimpleList/sectionheader.js b/apps/mobile/src/components/SimpleList/sectionheader.jsindex 189ccfd34..7a02b5281 100644--- a/apps/mobile/src/components/SimpleList/sectionheader.js+++ b/apps/mobile/src/components/SimpleList/sectionheader.js@@ -1,11 +1,10 @@import React from 'react';-import {TouchableOpacity, useWindowDimensions, View} from 'react-native';-import {TouchableWithoutFeedback} from 'react-native-gesture-handler';-import {useTracked} from '../../provider';-import {eSendEvent} from '../../services/EventManager';-import {eOpenJumpToDialog} from '../../utils/Events';-import {SIZE} from '../../utils/SizeUtils';-import {HeaderMenu} from '../Header/HeaderMenu';+import { TouchableOpacity, useWindowDimensions, View } from 'react-native';+import { useTracked } from '../../provider';+import { eSendEvent } from '../../services/EventManager';+import { eOpenJumpToDialog } from '../../utils/Events';+import { SIZE } from '../../utils/SizeUtils';+import { HeaderMenu } from '../Header/HeaderMenu';import Heading from '../Typography/Heading';export const SectionHeader = ({diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsindex f2bd5f0a0..1a72b5799 100644--- a/apps/mobile/src/views/Settings/index.js+++ b/apps/mobile/src/views/Settings/index.js@@ -278,8 +278,8 @@ export const Settings = ({navigation}) => {style={{paddingHorizontal: 0,}}>- {!DDS.isLargeTablet() && (- <Header title="Settings" type="settings" messageCard={false} />+ {!DDS.isTab && (+ <Header noAnnouncement={true} title="Settings" type="settings" messageCard={false} />)}<SettingsUserSection />