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
minor fixes & improvements
ammarahm-ed6bd9c325b207
diff --git a/apps/mobile/src/common/common.js b/apps/mobile/src/common/common.jsindex e8b481d8d..3dec5fdb3 100755--- a/apps/mobile/src/common/common.js+++ b/apps/mobile/src/common/common.js@@ -133,8 +133,8 @@ export const normalize = size => {};export const SIZE = {- xxs: normalize(10),- xs: normalize(12),+ xxs: 10,+ xs: 12,sm: normalize(15),md: normalize(18),lg: normalize(24),diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex de289f37f..4b1c44983 100644--- a/apps/mobile/src/components/NoteItem/index.js+++ b/apps/mobile/src/components/NoteItem/index.js@@ -140,7 +140,6 @@ export default class NoteItem extends React.Component {fontSize: SIZE.sm + 1,fontFamily: WEIGHT.bold,maxWidth: '95%',- marginBottom: 5,}}>{item.title.replace('\n', '')}</Text>@@ -171,7 +170,7 @@ export default class NoteItem extends React.Component {justifyContent: 'flex-start',alignItems: 'center',width: '100%',- marginTop: 10,+ marginTop: 5,}}>{!isTrash ? (<>diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.jsindex 2a443541a..dc1cf0190 100644--- a/apps/mobile/src/components/NotebookItem/index.js+++ b/apps/mobile/src/components/NotebookItem/index.js@@ -80,7 +80,6 @@ export const NotebookItem = ({fontSize: SIZE.sm + 1,color: colors.pri,maxWidth: '100%',- marginBottom: 5,}}>{item.title}</Text>@@ -105,7 +104,6 @@ export const NotebookItem = ({style={{flexDirection: 'row',alignItems: 'center',- marginTop: 5,width: '80%',maxWidth: '80%',flexWrap: 'wrap',@@ -119,8 +117,8 @@ export const NotebookItem = ({backgroundColor: colors.accent,paddingHorizontal: ph / 1.5,paddingVertical: pv / 4,- marginRight: 10,- marginVertical: 4,+ marginRight: 5,+ marginVertical: 2.5,}}><TextnumberOfLines={1}diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.jsindex 7163401a9..bf575644c 100644--- a/apps/mobile/src/components/NotesList/index.js+++ b/apps/mobile/src/components/NotesList/index.js@@ -3,21 +3,20 @@ import {ActivityIndicator,FlatList,Platform,+ RefreshControl,SectionList,Text,View,- RefreshControl,} from 'react-native';import {SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';-import {slideLeft, slideRight} from '../../utils/animations';-import {NotesPlaceHolder} from '../ListPlaceholders';-import NoteItem from '../NoteItem';-import SelectionWrapper from '../SelectionWrapper';import {eSendEvent} from '../../services/eventManager';import {eScrollEvent} from '../../services/events';import {ToastEvent} from '../../utils/utils';+import {NotesPlaceHolder} from '../ListPlaceholders';+import NoteItem from '../NoteItem';+import SelectionWrapper from '../SelectionWrapper';export const NotesList = ({isGrouped = false}) => {const [state, dispatch] = useTracked();diff --git a/apps/mobile/src/components/Toast/index.js b/apps/mobile/src/components/Toast/index.jsindex f265a0d5a..eb5779dc3 100644--- a/apps/mobile/src/components/Toast/index.js+++ b/apps/mobile/src/components/Toast/index.js@@ -70,7 +70,12 @@ export const Toast = () => {style={{width: '100%',alignItems: 'center',+ height: 60,opacity: toast ? 1 : 0,+ bottom: 100,+ position: 'absolute',++ zIndex: 999,transform: [{translateY: toast ? 0 : 300,@@ -83,13 +88,8 @@ export const Toast = () => {...toastStyle,maxWidth: DDS.isTab ? normalize(350) : w - 24,minWidth: DDS.isTab ? normalize(250) : w / 2,- marginHorizontal: 12,- position: 'absolute',alignSelf: 'center',- bottom: 100,- zIndex: 999,borderRadius: 5,-paddingHorizontal: ph,paddingVertical: pv,justifyContent: 'center',diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.jsindex 5eac39295..21d590796 100755--- a/apps/mobile/src/views/Home/index.js+++ b/apps/mobile/src/views/Home/index.js@@ -5,12 +5,12 @@ import {useIsFocused} from 'react-navigation-hooks';import {DDS} from '../../../App';import Container from '../../components/Container';import {NotesList} from '../../components/NotesList';+import SelectionHeader from '../../components/SelectionHeader';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';import {eSendEvent} from '../../services/eventManager';import NavigationService from '../../services/NavigationService';import {SideMenuEvent} from '../../utils/utils';-import SelectionHeader from '../../components/SelectionHeader';export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(SafeAreaView,@@ -19,7 +19,6 @@ export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(export const Home = ({navigation}) => {const [state, dispatch] = useTracked();const {notes} = state;-const isFocused = useIsFocused();useEffect(() => {diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsindex 2a047fc5f..d9b0648a0 100644--- a/apps/mobile/src/views/Settings/index.js+++ b/apps/mobile/src/views/Settings/index.js@@ -93,7 +93,7 @@ export const Settings = ({navigation}) => {}}><Textstyle={{- fontSize: item.step ? SIZE.sm : SIZE.md,+ fontSize: SIZE.md,fontFamily: WEIGHT.regular,textAlignVertical: 'center',color: colors.pri,diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex 6229a05c1..166de8fa3 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -93,6 +93,7 @@ export const Tags = ({navigation}) => {}renderItem={({item, index}) => (<TouchableOpacity+ key={item.title}onPress={() => {NavigationService.navigate('Notes', {type: 'tag',