aboutsummaryrefslogtreecommitdiff
path: root/src/components/still-image
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-02-18 05:03:26 +0000
committerxenofem <xenofem@xeno.science>2020-06-28 02:10:06 -0400
commit2c6ec37e6a796d2d7be7be58ac0e3c6c8bbd6a18 (patch)
tree114e159337270a4a1d9e6a4fd8cb2d081a329161 /src/components/still-image
parent391f796cb491478105a617b6554e9334cca1443b (diff)
media description support
Diffstat (limited to 'src/components/still-image')
-rw-r--r--src/components/still-image/still-image.js3
-rw-r--r--src/components/still-image/still-image.vue2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js
index e48fef47..ab40bbd7 100644
--- a/src/components/still-image/still-image.js
+++ b/src/components/still-image/still-image.js
@@ -4,7 +4,8 @@ const StillImage = {
'referrerpolicy',
'mimetype',
'imageLoadError',
- 'imageLoadHandler'
+ 'imageLoadHandler',
+ 'alt'
],
data () {
return {
diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue
index f2ddeb7b..9130ec98 100644
--- a/src/components/still-image/still-image.vue
+++ b/src/components/still-image/still-image.vue
@@ -10,6 +10,8 @@
<!-- NOTE: key is required to force to re-render img tag when src is changed -->
<img
ref="src"
+ :alt="alt"
+ :title="alt"
:key="src"
:src="src"
:referrerpolicy="referrerpolicy"