minor
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
:height="height" :width="width"
|
:height="height" :width="width"
|
||||||
:style="{ 'object-position': thumbnailPosition }">
|
:style="{ 'object-position': thumbnailPosition }">
|
||||||
|
|
||||||
<img v-else-if='!media && thumb' class='thumb' src="noimg.svg" alt=''>
|
<img v-else-if='!media && thumb' class='thumb' src="/noimg.svg" alt=''>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -35,7 +35,7 @@ export default {
|
|||||||
return `/media/thumb/${this.media.url} 500w, /media/${this.media.url} 1200w`
|
return `/media/thumb/${this.media.url} 500w, /media/${this.media.url} 1200w`
|
||||||
},
|
},
|
||||||
media () {
|
media () {
|
||||||
return this.event.media[0]
|
return this.event.media && this.event.media[0]
|
||||||
},
|
},
|
||||||
height () {
|
height () {
|
||||||
return this.media ? this.media.height : 'auto'
|
return this.media ? this.media.height : 'auto'
|
||||||
|
|||||||
Reference in New Issue
Block a user