fixed image caption #2564
This commit is contained in:
@@ -43,7 +43,10 @@ export default {
|
||||
<template>
|
||||
<section class="entite">
|
||||
<section v-if="entite.image.length" class="image">
|
||||
<img :src="entite.image[0].url" :alt="entite.image[0].alt"/>
|
||||
<figure>
|
||||
<img :src="entite.image[0].url" :alt="entite.image[0].alt"/>
|
||||
<figcaption>{{ entite.image[0].alt }}</figcaption>
|
||||
</figure>
|
||||
</section>
|
||||
<section v-if="entite.action" class="action">
|
||||
<label v-if="ct_entite">{{ ct_entite.field_action.description }}</label>
|
||||
@@ -74,7 +77,10 @@ export default {
|
||||
<figure
|
||||
v-for="(image, j) in source.images"
|
||||
:key="j">
|
||||
<img :src="image.url" :alt="image.alt"/>
|
||||
<figure>
|
||||
<img :src="image.url" :alt="image.alt"/>
|
||||
<figcaption>{{ image.alt }}</figcaption>
|
||||
</figure>
|
||||
</figure>
|
||||
</section>
|
||||
|
||||
|
Reference in New Issue
Block a user