A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: disable expand sidebar button on small screens (#9769)
01zulfi9f20d243fa18
diff --git a/apps/web/src/app.tsx b/apps/web/src/app.tsxindex e0646f093..fa527b14f 100644--- a/apps/web/src/app.tsx+++ b/apps/web/src/app.tsx@@ -215,7 +215,10 @@ function DesktopAppContents() {zIndex: 3}}>- <NavigationMenu onExpand={() => navPane.current?.reset(0)} />+ <NavigationMenu+ onExpand={() => navPane.current?.reset(0)}+ canExpand={!isTablet}+ /></Pane>)}{isFocusMode ? null : (diff --git a/apps/web/src/components/navigation-menu/index.tsx b/apps/web/src/components/navigation-menu/index.tsxindex 60fd97287..f5aaf0dd5 100644--- a/apps/web/src/components/navigation-menu/index.tsx+++ b/apps/web/src/components/navigation-menu/index.tsx@@ -228,7 +228,13 @@ const tabs: NavigationTabItem[] = [}] as const;-function NavigationMenu({ onExpand }: { onExpand?: () => void }) {+function NavigationMenu({+ onExpand,+ canExpand+}: {+ onExpand?: () => void;+ canExpand: boolean;+}) {const isFocusMode = useAppStore((store) => store.isFocusMode);const navigationTab = useAppStore((store) => store.navigationTab);const setNavigationTab = useAppStore((store) => store.setNavigationTab);@@ -352,6 +358,7 @@ function NavigationMenu({ onExpand }: { onExpand?: () => void }) {sx={{ p: 1, bg: "transparent" }}onClick={onExpand}title={strings.expandSidebar()}+ disabled={!canExpand}><ExpandSidebar size={13} color="icon" /></Button>