mobile: fix ui and cleanup

This commit is contained in:
ammarahm-ed
2023-08-07 14:38:54 +05:00
parent 8c2fdf8554
commit c89f74d35b
3 changed files with 11 additions and 3 deletions

View File

@@ -223,7 +223,7 @@ export default function ReminderSheet({
<View
style={{
paddingHorizontal: 12,
maxHeight: DDS.isTab ? "90%" : "99.99%"
maxHeight: DDS.isTab ? "99.99%" : "99.99%"
}}
>
<View
@@ -247,7 +247,12 @@ export default function ReminderSheet({
/>
</View>
<Dialog context="local" />
<ScrollView bounces={false}>
<ScrollView
bounces={false}
style={{
marginBottom: DDS.isTab ? 25 : undefined
}}
>
<Input
fwdRef={titleRef}
defaultValue={reminder?.title || referencedItem?.title}

View File

@@ -214,6 +214,10 @@ export const FluidTabs = forwardRef<TabsRef, TabProps>(function FluidTabs(
return;
}
translateX.value = animated ? withTiming(homePosition) : homePosition;
if (!animated) {
translateX.value = 299;
translateX.value = 300;
}
onDrawerStateChange(false);
isDrawerOpen.value = false;
},

View File

@@ -127,7 +127,6 @@ const Editor = React.memo(
renderKey.current === `editor-0` ? `editor-1` : `editor-0`;
editor.state.current.ready = false;
editor.setLoading(true);
console.log("ERROR ERROR", Date.now());
}, [editor]);
useEffect(() => {