mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
[misc] modification for mobile (#4016)
This commit is contained in:
@@ -49,7 +49,7 @@ class Wiki extends Component {
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
if (window.screen.width <= 768) {
|
||||
if (!Utils.isDesktop()) {
|
||||
this.setState({ closeSideBar: true });
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user