scroll fix

This commit is contained in:
ammarahm-ed
2020-12-19 14:26:44 +05:00
parent f3d5ac4808
commit f52de3fa42
5 changed files with 35 additions and 19 deletions

View File

@@ -17,12 +17,12 @@ const ActionSheetWrapper = ({
const [state] = useTracked();
const {colors} = state;
const largeTablet = DDS.isLargeTablet();
const smallTablet = DDS.isTab;
const style = React.useMemo(() => {
return {
width: largeTablet ? 500 : '100%',
minHeight: largeTablet ? 100 : null,
maxHeight: largeTablet ? 500 : '90%',
width: largeTablet || smallTablet ? 500 : '100%',
maxHeight: largeTablet ? 500 : '100%',
borderTopRightRadius: 10,
borderTopLeftRadius: 10,
backgroundColor: colors.bg,