mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-25 00:53:15 +01:00
Add title attributes for media descriptions.
Set both "alt" and "title"
This commit is contained in:
parent
51eda16084
commit
20dcbe74d4
@ -42,9 +42,9 @@ const playVideo = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div v-if="config.showMedia" class="wall-media mb-3">
|
<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"
|
<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">
|
<source v-if="playVideo" :src="media.url">
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user