move card to left in narrative mode

This commit is contained in:
Lachlan Kermode
2019-01-03 17:33:03 +00:00
parent 58b37105f5
commit cfea5ee490
4 changed files with 23 additions and 5 deletions

View File

@@ -65,9 +65,16 @@ class CardStack extends React.Component {
}
render() {
if (this.props.selected.length > 0) {
const { isCardstack, isNarrative, selected } = this.props
if (selected.length > 0) {
return (
<div id="card-stack" className={`card-stack ${this.props.isCardstack ? '' : ' folded'}`}>
<div
id="card-stack"
className={`card-stack
${isNarrative ? 'narrative-mode' : ''}
${isCardstack ? '' : ' folded'}`
}
>
{this.renderCardStackHeader()}
{this.renderCardStackContent()}
</div>

View File

@@ -78,6 +78,7 @@ class Dashboard extends React.Component {
this.handleSelect([ narrative.steps[0] ])
this.props.actions.updateNarrative(narrative)
}
moveInNarrative(amt) {
const { current } = this.props.app.narrativeState
const { narrative } = this.props.app