From bb4aecc5a8f6ac4b24263b18ffd45ec3adce8bb8 Mon Sep 17 00:00:00 2001 From: Peter Badida Date: Sun, 24 Nov 2019 16:14:04 +0100 Subject: [PATCH 1/2] Invert NavigationView autoResize behavior --- src/NavigationView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NavigationView/index.tsx b/src/NavigationView/index.tsx index b0a7339d..4f627bfc 100644 --- a/src/NavigationView/index.tsx +++ b/src/NavigationView/index.tsx @@ -148,7 +148,7 @@ export class NavigationView extends React.Component { - if (window.innerWidth < 1280) { + if (window.innerWidth >= 1280) { if (this.state.currDisplayMode !== "compact") { this.setState({ currDisplayMode: "compact", From 1fc69c4343dc4743b5c435c33836c76a69ec91b9 Mon Sep 17 00:00:00 2001 From: Peter Badida Date: Sun, 24 Nov 2019 16:38:07 +0100 Subject: [PATCH 2/2] Fix NavigationView.currInitWidth expanding from minimal display mode --- src/NavigationView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NavigationView/index.tsx b/src/NavigationView/index.tsx index 4f627bfc..2960d129 100644 --- a/src/NavigationView/index.tsx +++ b/src/NavigationView/index.tsx @@ -152,7 +152,7 @@ export class NavigationView extends React.Component