web: fix nav pane on small screens

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-07-16 13:55:21 +05:00
committed by Abdullah Atta
parent f90e7982f7
commit c4e306d569

View File

@@ -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 : (