Fix subs resolving on file page when sidenav closed

This commit is contained in:
Rafael 2022-03-03 08:31:54 -03:00 committed by Thomas Zarebczan
parent 96e7fda26a
commit 7c3cbaca15

View file

@ -259,7 +259,7 @@ function SideNavigation(props: Props) {
} }
}, [hideMenuFromView, menuInitialized]); }, [hideMenuFromView, menuInitialized]);
const shouldRenderLargeMenu = menuCanCloseCompletely || sidebarOpen; const shouldRenderLargeMenu = (menuCanCloseCompletely && !isAbsolute) || sidebarOpen;
const showMicroMenu = !sidebarOpen && !menuCanCloseCompletely; const showMicroMenu = !sidebarOpen && !menuCanCloseCompletely;
const showPushMenu = sidebarOpen && !menuCanCloseCompletely; const showPushMenu = sidebarOpen && !menuCanCloseCompletely;