WIP: filters as narratives always

This commit is contained in:
Lachlan Kermode
2020-06-19 14:49:22 +02:00
parent 442d8ea5d7
commit 973619d178
7 changed files with 118 additions and 16 deletions

View File

@@ -136,8 +136,10 @@ class CardStack extends React.Component {
}
render () {
const { isCardstack, selected, narrative } = this.props
const { isCardstack, selected, narrative, timelineDims } = this.props
// TODO: make '237px', which is the narrative header, less hard-coded
const height = `calc(100% - 237px - ${timelineDims.height}px)`
if (selected.length > 0) {
if (!narrative) {
return (
@@ -159,6 +161,7 @@ class CardStack extends React.Component {
className={`card-stack narrative-mode
${isCardstack ? '' : ' folded'}`
}
style={{height}}
>
{this.renderNarrativeContent()}
</div>