mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
fix mobile side panel style (#6601)
This commit is contained in:
@@ -4,7 +4,7 @@ import { Router, navigate } from '@gatsbyjs/reach-router';
|
|||||||
import MediaQuery from 'react-responsive';
|
import MediaQuery from 'react-responsive';
|
||||||
import { Modal } from 'reactstrap';
|
import { Modal } from 'reactstrap';
|
||||||
import { siteRoot } from './utils/constants';
|
import { siteRoot } from './utils/constants';
|
||||||
import { Utils } from './utils/utils';
|
import { Utils, isMobile } from './utils/utils';
|
||||||
import SystemNotification from './components/system-notification';
|
import SystemNotification from './components/system-notification';
|
||||||
import EventBus from './components/common/event-bus';
|
import EventBus from './components/common/event-bus';
|
||||||
import Header from './components/header';
|
import Header from './components/header';
|
||||||
@@ -51,7 +51,7 @@ class App extends Component {
|
|||||||
}
|
}
|
||||||
this.state = {
|
this.state = {
|
||||||
isSidePanelClosed: false,
|
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: '',
|
currentTab: '',
|
||||||
pathPrefix: [],
|
pathPrefix: [],
|
||||||
inResizing: false,
|
inResizing: false,
|
||||||
|
Reference in New Issue
Block a user