Skip to content

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

fix floating button on ios

ammarahm-ed4e7079fb24e3
diff --git a/apps/mobile/features.ts b/apps/mobile/features.ts
index 16f10afed..ba019e771 100644
--- a/apps/mobile/features.ts
+++ b/apps/mobile/features.ts
@@ -1,9 +1,3 @@
import { FeatureType } from './src/components/sheets/new-feature';
-export const features: FeatureType[] = [
- {
- title: 'Swipe to close editor',
- body: 'Now you can swipe from the left edge to close the editor',
- platform: 'ios'
- }
-];
+export const features: FeatureType[] = [];
diff --git a/apps/mobile/src/components/container/floatingbutton.js b/apps/mobile/src/components/container/floatingbutton.js
index 4e11e614f..efebe95c1 100644
--- a/apps/mobile/src/components/container/floatingbutton.js
+++ b/apps/mobile/src/components/container/floatingbutton.js
@@ -67,9 +67,9 @@ export const FloatingButton = ({ title, onPress, color = 'accent', shouldShow =
};
}, [deviceMode]);
const paddings = {
- ios: insets.bottom === 0 ? 70 : insets.bottom + 15,
+ ios: 20,
android: 20,
- iPad: insets.bottom
+ iPad: 20
};
return deviceMode !== 'mobile' && !shouldShow ? null : (
diff --git a/apps/mobile/src/components/sheets/migrate/index.tsx b/apps/mobile/src/components/sheets/migrate/index.tsx
index 9f0347961..d94a3d14e 100644
--- a/apps/mobile/src/components/sheets/migrate/index.tsx
+++ b/apps/mobile/src/components/sheets/migrate/index.tsx
@@ -106,7 +106,8 @@ If you face any other issues or are unsure about what to do, feel free to reach
}}
style={{
borderRadius: 100,
- height: 45
+ height: 45,
+ marginTop: 20
}}
/>
)}