mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: fix nav pane on small screens
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -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 : (
|
||||
|
||||
Reference in New Issue
Block a user