blue-react 8.9.2 → 8.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,7 @@ var Layout = /*#__PURE__*/function (_Component) {
|
|
|
76
76
|
_this.defaultMatch = ["home"];
|
|
77
77
|
_this.state = {
|
|
78
78
|
sidebarIn: props.sidebarIn || false,
|
|
79
|
-
expandSidebar: props.expandSidebar || localStorage.getItem("
|
|
79
|
+
expandSidebar: props.expandSidebar || localStorage.getItem("blueLayoutShrinkSidebar") === null,
|
|
80
80
|
match: null,
|
|
81
81
|
history: [],
|
|
82
82
|
hash: window.location.hash,
|
|
@@ -259,9 +259,9 @@ var Layout = /*#__PURE__*/function (_Component) {
|
|
|
259
259
|
var expandSidebar = this.state.expandSidebar;
|
|
260
260
|
|
|
261
261
|
if (expandSidebar) {
|
|
262
|
-
localStorage.
|
|
262
|
+
localStorage.setItem("blueLayoutShrinkSidebar", "true");
|
|
263
263
|
} else {
|
|
264
|
-
localStorage.
|
|
264
|
+
localStorage.removeItem("blueLayoutShrinkSidebar");
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
this.setState({
|
|
@@ -24,7 +24,7 @@ function SidebarToggler(_ref) {
|
|
|
24
24
|
"data-tooltip": (0, _shared.getPhrase)("Toggle menu")
|
|
25
25
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
26
26
|
type: "button",
|
|
27
|
-
className: "blue-open-menu blue-menu-item btn",
|
|
27
|
+
className: "blue-open-menu blue-menu-item btn rounded-0",
|
|
28
28
|
onClick: onClick,
|
|
29
29
|
"aria-label": (0, _shared.getPhrase)("Toggle menu")
|
|
30
30
|
}, /*#__PURE__*/_react.default.createElement("div", {
|