Skip to content

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

fix: open/close drawer only on small tablets

ammarahm-edb0d1b6859814
diff --git a/apps/mobile/src/navigation/tabsholder.js b/apps/mobile/src/navigation/tabsholder.js
index 60d8d8abc..bd7cea95c 100644
--- a/apps/mobile/src/navigation/tabsholder.js
+++ b/apps/mobile/src/navigation/tabsholder.js
@@ -64,7 +64,9 @@ export const TabsHolder = React.memo(
const showFullScreenEditor = () => {
setFullscreen(true);
- tabBarRef.current?.openDrawer();
+ if (deviceMode === 'smallTablet') {
+ tabBarRef.current?.openDrawer();
+ }
editorRef.current?.setNativeProps({
style: {
width: dimensions.width,
@@ -76,7 +78,9 @@ export const TabsHolder = React.memo(
};
const closeFullScreenEditor = () => {
- tabBarRef.current?.closeDrawer();
+ if (deviceMode === 'smallTablet') {
+ tabBarRef.current?.closeDrawer();
+ }
setFullscreen(false);
editorController.current?.commands.updateSettings({
fullscreen: false