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
fix floating button position
ammarahm-ed86f20041c461
diff --git a/apps/mobile/src/components/container/floatingbutton.js b/apps/mobile/src/components/container/floatingbutton.jsindex 3998afc72..2bd46ea26 100644--- a/apps/mobile/src/components/container/floatingbutton.js+++ b/apps/mobile/src/components/container/floatingbutton.js@@ -66,6 +66,11 @@ export const FloatingButton = ({ title, onPress, color = 'accent', shouldShow =sub2?.remove();};}, [deviceMode]);+ const paddings = {+ ios: insets.bottom === 0 ? 70 : insets.bottom + 15,+ android: insets.bottom,+ iPad: insets.bottom+ };return deviceMode !== 'mobile' && !shouldShow ? null : (<Animated.View@@ -73,12 +78,7 @@ export const FloatingButton = ({ title, onPress, color = 'accent', shouldShow ={position: 'absolute',right: 12,- bottom:- Platform.OS === 'ios' && insets.bottom !== 0- ? Platform.isPad- ? insets.bottom - 12- : insets.bottom - 24- : insets.bottom,+ bottom: paddings[Platform.isPad ? 'iPad' : Platform.OS],zIndex: 10},animatedStylediff --git a/apps/mobile/src/components/header/title.js b/apps/mobile/src/components/header/title.jsindex 926324fa0..8728672bb 100644--- a/apps/mobile/src/components/header/title.js+++ b/apps/mobile/src/components/header/title.js@@ -1,5 +1,5 @@import React, { useEffect, useState } from 'react';-import { View } from 'react-native';+import { Platform, View } from 'react-native';import Animated, { Layout } from 'react-native-reanimated';import Notebook from '../../screens/notebook';import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/event-manager';@@ -82,7 +82,8 @@ export const Title = () => {numberOfLines={isTopic ? 2 : 1}size={isTopic ? SIZE.md + 2 : SIZE.xl}style={{- flexWrap: 'wrap'+ flexWrap: 'wrap',+ marginTop: Platform.OS === 'ios' ? -1 : 0}}color={currentScreen.color}>