File tree Expand file tree Collapse file tree
packages/documentation/src/components/Layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { ConfiguredIcons } from "@react-md/icon";
99import {
1010 Configuration ,
1111 Layout as RMDLayout ,
12+ LayoutConfiguration ,
1213 useLayoutNavigation ,
1314} from "@react-md/layout" ;
1415import {
@@ -67,6 +68,15 @@ const icons: ConfiguredIcons = {
6768 sort : < ArrowUpwardSVGIcon /> ,
6869} ;
6970
71+ let devLayoutConf : LayoutConfiguration | undefined ;
72+ if ( process . env . NODE_ENV !== "production" ) {
73+ devLayoutConf = {
74+ landscapeTabletLayout : "temporary" ,
75+ desktopLayout : "temporary" ,
76+ largeDesktopLayout : "temporary" ,
77+ } ;
78+ }
79+
7080export default function Layout ( {
7181 children,
7282 title,
@@ -120,6 +130,7 @@ export default function Layout({
120130 LinkUnstyled
121131 ) }
122132 navHeaderProps = { { children : < NavHeaderTitle /> } }
133+ { ...devLayoutConf }
123134 >
124135 < TableOfContents pathname = { pathname } />
125136 < Provider value = { setElevated } > { children } </ Provider >
You can’t perform that action at this time.
0 commit comments