fix(related items): fix for non-vertical orentation

Hide related items if there are no items (horizontal)
This commit is contained in:
cameron clark
2020-12-04 11:36:54 +01:00
committed by Julien Machiels
parent be28aa8adc
commit d3cdd3d6fc
+5 -2
View File
@@ -1,6 +1,9 @@
<template>
<div>
<div v-if="!vertical" class="related-items">
<div
v-if="!vertical && !loading && relatedItems.length > 0"
class="related-items"
>
<slot>
<h1 class="text-h5 mb-2 ml-2 header">
<span>{{ $t('youMayAlsoLike') }}</span>
@@ -34,7 +37,7 @@
</template>
</vueper-slides>
</div>
<div v-else>
<div v-else-if="vertical">
<h2 v-if="!loading && relatedItems.length > 0">
<slot>
{{ $t('youMayAlsoLike') }}