Skip to content

Commit

Permalink
fix(ce): support intext option for gallery content element
Browse files Browse the repository at this point in the history
  • Loading branch information
mercs600 committed Mar 10, 2020
1 parent 541d625 commit f604c0a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/templates/components/content/elements/media/Gallery.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<div :class="galleryCss" class="ce-gallery">
<slot name="before" />
<slot v-if="gallery.position.vertical === 'below'" />
<div v-if="gallery.position.vertical === 'below'" class="ce-gallery__text">
<slot />
</div>
<div v-if="gallery.count.files" class="ce-gallery__container">
<div
v-for="(row, rowKey) in gallery.rows"
Expand All @@ -17,7 +19,15 @@
</div>
</div>
</div>
<slot v-if="gallery.position.vertical === 'above'" />
<div
v-if="
gallery.position.vertical === 'above' ||
gallery.position.vertical === 'intext'
"
class="ce-gallery__text"
>
<slot />
</div>
<slot name="after" />
</div>
</template>
Expand Down

0 comments on commit f604c0a

Please sign in to comment.