Only show related events section if there's some
Always use 1/3 column layout for related events columns Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
dd1e0a3d39
commit
ff82cba575
|
@ -216,10 +216,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="more-events container">
|
<section class="more-events container" v-if="event.relatedEvents.length > 0">
|
||||||
<h3 class="title has-text-centered"><translate>These events may interest you</translate></h3>
|
<h3 class="title has-text-centered"><translate>These events may interest you</translate></h3>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column" v-for="relatedEvent in event.relatedEvents" :key="relatedEvent.uuid">
|
<div class="column is-one-third-desktop" v-for="relatedEvent in event.relatedEvents" :key="relatedEvent.uuid">
|
||||||
<EventCard :event="relatedEvent" />
|
<EventCard :event="relatedEvent" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue