allows cover hide

This commit is contained in:
msramalho
2022-03-17 12:42:01 +01:00
parent e425364847
commit 57ca9921ae

View File

@@ -257,11 +257,12 @@ class Dashboard extends React.Component {
</div>
) : null;
let searchParams = new URLSearchParams(window.location.href.split("?")[1]);
return (
<Popup
title="Introduction to the platform"
theme="dark"
isOpen={app.flags.isIntropopup}
isOpen={app.flags.isIntropopup && (!searchParams.has('cover') || searchParams.get('cover') !== 'false')}
onClose={actions.toggleIntroPopup}
content={app.intro}
styles={styles}
@@ -284,14 +285,14 @@ class Dashboard extends React.Component {
width: checkMobile
? "100vw"
: window.innerWidth > 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={{