diff --git a/src/components/Layout.js b/src/components/Layout.js index c667c49..9a509e8 100644 --- a/src/components/Layout.js +++ b/src/components/Layout.js @@ -257,11 +257,12 @@ class Dashboard extends React.Component { ) : null; + let searchParams = new URLSearchParams(window.location.href.split("?")[1]); return ( 768 - ? "60vw" - : "calc(100vw - var(--toolbar-width))", + ? "60vw" + : "calc(100vw - var(--toolbar-width))", maxWidth: checkMobile ? "100vw" : 600, maxHeight: checkMobile ? "100vh" : window.innerHeight > 768 - ? `calc(100vh - ${app.timeline.dimensions.height}px - ${dateHeight}px)` - : "100vh", + ? `calc(100vh - ${app.timeline.dimensions.height}px - ${dateHeight}px)` + : "100vh", left: checkMobile ? padding : "var(--toolbar-width)", top: 0, overflowY: "scroll", @@ -373,9 +374,9 @@ class Dashboard extends React.Component { narrative={ app.associations.narrative ? { - ...app.associations.narrative, - current: this.props.narrativeIdx, - } + ...app.associations.narrative, + current: this.props.narrativeIdx, + } : null } methods={{