Skip to content

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

web: fix nav pane on small screens Signed-off-by: 01zulfi <[email protected]>

01zulfic4e306d5691c
diff --git a/apps/web/src/app.tsx b/apps/web/src/app.tsx
index 49ca2f653..53b5758ce 100644
--- a/apps/web/src/app.tsx
+++ b/apps/web/src/app.tsx
@@ -60,6 +60,14 @@ function App() {
useSettingStore.getState().desktopIntegrationSettings?.nativeTitlebar;
console.timeEnd("loading app");
+ useEffect(() => {
+ if (isMobile) {
+ useStore.setState({
+ isNavPaneCollapsed: false
+ });
+ }
+ }, [isMobile]);
+
return (
<>
{isFocused ? null : (