diff --git a/src/NavigationView/index.tsx b/src/NavigationView/index.tsx index b0a7339d..2960d129 100644 --- a/src/NavigationView/index.tsx +++ b/src/NavigationView/index.tsx @@ -148,11 +148,11 @@ export class NavigationView extends React.Component { - if (window.innerWidth < 1280) { + if (window.innerWidth >= 1280) { if (this.state.currDisplayMode !== "compact") { this.setState({ currDisplayMode: "compact", - currInitWidth: 0 + currInitWidth: this.props.initWidth }); } } else {