diff --git a/src/components/presentational/NarrativeCard.js b/src/components/presentational/NarrativeCard.js index fc578c7..a181a9d 100644 --- a/src/components/presentational/NarrativeCard.js +++ b/src/components/presentational/NarrativeCard.js @@ -42,15 +42,21 @@ function NarrativeCard ({ narrative, methods }) { return (
{narrative.description}
-{narrative.description}
+ ) } else { return null diff --git a/src/scss/cardstack.scss b/src/scss/cardstack.scss index 0b83da3..5edf312 100644 --- a/src/scss/cardstack.scss +++ b/src/scss/cardstack.scss @@ -17,8 +17,8 @@ $timeline-height: 170px; color: white; &.narrative-mode { - right: auto; - left: 10px; + right: 10px; + left: auto; top: $narrative-info-max-height + 12px; height: calc(100% - #{$narrative-info-max-height} - #{$timeline-height} - 12px); } diff --git a/src/scss/narrativecard.scss b/src/scss/narrativecard.scss index 36ebc63..b4c8930 100644 --- a/src/scss/narrativecard.scss +++ b/src/scss/narrativecard.scss @@ -6,20 +6,46 @@ NARRATIVE INFO .narrative-info { position: fixed; top: 10px; - left: 10px; + left: auto; + right: 10px; // height: auto; height: 170px; width: $narrative-info-width; box-sizing: border-box; - padding: 15px; max-height: calc(100% - 250px); - overflow: auto; box-shadow: 0 19px 38px rgba($black, 0.3), 0 15px 12px rgba($black, 0.22); background: $black; border: 1px solid $midgrey; color: $offwhite; font-family: 'Merriweather', 'Georgia', serif; + .narrative-info-header { + display: flex; + justify-content: space-between; + align-items: stretch; + border-bottom: 1px solid $darkwhite; + padding: 0 15px; + + .count-container { + display: flex; + justify-content: center; + align-items: center; + border-right: 1px solid $darkwhite; + } + .count { + position: relative; + padding-right: 15px; + } + } + + .narrative-info-desc { + overflow: auto; + } + + p { + padding: 0 15px; + } + h3, h6 { text-align: center; }