mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2026-09-03 05:10:26 +03:00
fix(related items): fix for non-vertical orentation
Hide related items if there are no items (horizontal)
This commit is contained in:
committed by
Julien Machiels
parent
be28aa8adc
commit
d3cdd3d6fc
@@ -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') }}
|
||||
|
||||
Reference in New Issue
Block a user