Skip to content

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

fix actionsheet ui on ipad

ammarahm-ed9f8278778a02
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
index a9a523e18..6bc81309c 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js
@@ -34,18 +34,17 @@ const ActionSheetWrapper = ({
const style = React.useMemo(() => {
return {
width: largeTablet || smallTablet ? 500 : '100%',
- maxHeight: largeTablet ? 500 : '100%',
borderTopRightRadius: 10,
borderTopLeftRadius: 10,
backgroundColor: colors.bg,
padding: largeTablet ? 8 : 0,
zIndex: 10,
- paddingVertical: 12,
+ paddingVertical: 10,
borderBottomRightRadius: largeTablet ? 10 : 1,
borderBottomLeftRadius: largeTablet ? 10 : 1,
marginBottom: largeTablet ? 50 : 0,
alignSelf: 'center',
- paddingTop: gestureEnabled ? 8 : 18,
+ paddingTop: gestureEnabled ? 10 : 18,
};
}, [colors.bg, gestureEnabled]);
@@ -78,6 +77,7 @@ const ActionSheetWrapper = ({
containerStyle={style}
gestureEnabled={gestureEnabled}
extraScroll={largeTablet ? 50 : 0}
+
initialOffsetFromBottom={1}
closeOnTouchBackdrop={closeOnTouchBackdrop}
indicatorColor={