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
mobile: fix share sheet bottom padding
Ammar Ahmed5b85158a7ce7
diff --git a/apps/mobile/app/share/share.tsx b/apps/mobile/app/share/share.tsxindex 7fbd6aed2..78638ebf3 100644--- a/apps/mobile/app/share/share.tsx+++ b/apps/mobile/app/share/share.tsx@@ -167,6 +167,11 @@ const ShareView = () => {globalThis["IS_SHARE_EXTENSION"] = true;const onKeyboardDidShow = (event: KeyboardEvent) => {let height = Dimensions.get("screen").height - event.endCoordinates.screenY;+ if (height < 100) {+ setKeyboardHeight(0);+ keyboardHeightRef.current = 0;+ return;+ }keyboardHeightRef.current = height;setKeyboardHeight(height);};@@ -448,11 +453,7 @@ const ShareView = () => {overflow: "hidden",paddingTop: insets.top,paddingLeft: insets.left,- paddingRight: insets.right,- paddingBottom:- Platform.OS === "android" && keyboardHeight- ? keyboardHeight - (insets.bottom || (gesturesEnabled ? 25 : 50))- : 0+ paddingRight: insets.right}}>{loadingPage ? <HtmlLoadingWebViewAgent /> : null}@@ -500,7 +501,11 @@ const ShareView = () => {display: searchMode ? "none" : "flex",borderTopRightRadius: Platform.OS === "ios" ? 10 : 15,borderTopLeftRadius: Platform.OS === "ios" ? 10 : 15,- maxHeight: Platform.OS === "android" ? undefined : "100%"+ maxHeight: Platform.OS === "android" ? undefined : "100%",+ paddingBottom:+ Platform.OS === "android" && keyboardHeight+ ? keyboardHeight+ : insets.bottom}}><ScrollView>