1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

fix mobile side panel style (#6601)

This commit is contained in:
Michael An
2024-08-21 14:40:27 +08:00
committed by GitHub
parent a2b9fabb06
commit dd53e6e7df

View File

@@ -4,7 +4,7 @@ import { Router, navigate } from '@gatsbyjs/reach-router';
import MediaQuery from 'react-responsive';
import { Modal } from 'reactstrap';
import { siteRoot } from './utils/constants';
import { Utils } from './utils/utils';
import { Utils, isMobile } from './utils/utils';
import SystemNotification from './components/system-notification';
import EventBus from './components/common/event-bus';
import Header from './components/header';
@@ -51,7 +51,7 @@ class App extends Component {
}
this.state = {
isSidePanelClosed: false,
isSidePanelFolded: localStorage.getItem('sf_user_side_nav_folded') == 'true' || false,
isSidePanelFolded: isMobile ? false : (localStorage.getItem('sf_user_side_nav_folded') == 'true' || false),
currentTab: '',
pathPrefix: [],
inResizing: false,