Add title attributes for media descriptions.

Set both "alt" and "title"
This commit is contained in:
Marcel Hellkamp 2023-08-15 15:26:19 +02:00
parent 51eda16084
commit 20dcbe74d4

View File

@ -42,9 +42,9 @@ const playVideo = computed(() => {
</div>
<div class="card-body">
<div v-if="config.showMedia" class="wall-media mb-3">
<img v-if="media?.type === 'image'" :src="media.url" :alt="media.alt">
<img v-if="media?.type === 'image'" :src="media.url" :alt="media.alt" :title="media.alt">
<video v-else-if="media?.type === 'video'" ref="videoElement" muted loop :autoplay="playVideo"
:poster="media.preview" :alt="media.alt">
:poster="media.preview" :alt="media.alt" :title="media.alt">
<source v-if="playVideo" :src="media.url">
</video>
</div>