Skip to content

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

mobile: fix bottom padding

Ammar Ahmedce7c003c5401
diff --git a/apps/mobile/app/components/ui/sheet/index.js b/apps/mobile/app/components/ui/sheet/index.js
index 6401c443c..d4a4054fd 100644
--- a/apps/mobile/app/components/ui/sheet/index.js
+++ b/apps/mobile/app/components/ui/sheet/index.js
@@ -77,9 +77,9 @@ const SheetWrapper = ({
...getContainerBorder(colors.primary.border, 0.5),
borderBottomWidth: 0,
paddingBottom:
- Platform.OS === "android"
+ Platform.OS === "android" && !insets.bottom
? isGestureNavigationEnabled
- ? insets.bottom
+ ? 0
: 30
: 0
};
@@ -165,10 +165,7 @@ const SheetWrapper = ({
{bottomPadding ? (
<View
style={{
- height:
- Platform.OS === "ios" || insets.bottom !== 0
- ? insets.bottom
- : 20
+ height: insets.bottom !== 0 ? insets.bottom : 20
}}
/>
) : null}