Fix results banner in the Twitter screenshot

This commit is contained in:
Matt Isenhower
2018-09-23 14:59:54 -04:00
parent 6e1574a617
commit 5743b6d1d8

View File

@@ -39,7 +39,7 @@
</div>
<div class="has-text-centered is-size-5 title-color festival-period-container">
<div v-if="!showingResults" class="festival-period" :style="{ 'background-color': festival.colors.middle.css_rgb }">
<div v-if="!showingResultsBar" class="festival-period" :style="{ 'background-color': festival.colors.middle.css_rgb }">
<template v-if="!screenshotMode">
<span class="nowrap">
{{ festival.times.start | date(dateOptions) }}
@@ -111,6 +111,9 @@ export default {
showingResults() {
return this.festival.results && !this.screenshotMode && !this.historyMode;
},
showingResultsBar() {
return this.showingResults || (this.festival.results && this.screenshotMode);
},
dateOptions() {
if (this.historyMode)
return { year: 'numeric' };