aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-08-25 00:32:10 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-08-25 00:32:10 +0000
commit30a6b7be5bf53611bb65cbabd18ad003989df8e3 (patch)
treecb77fa52e58d0b0afb55b42d307b31cb8a5d40e8 /src
parent673f0fca3f7898641cdc488e6e6cc9033ca51777 (diff)
attachment: add support for rendering alt text on images
Diffstat (limited to 'src')
-rw-r--r--src/components/attachment/attachment.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index d01c8566..bbb43679 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -10,7 +10,7 @@
<a href="#" @click.prevent="toggleHidden()">Hide</a>
</div>
- <a v-if="type === 'image' && !hidden" class="image-attachment" :href="attachment.url" target="_blank">
+ <a v-if="type === 'image' && !hidden" class="image-attachment" :href="attachment.url" target="_blank" :title="attachment.description">
<StillImage :class="{'small': isSmall}" referrerpolicy="no-referrer" :mimetype="attachment.mimetype" :src="attachment.large_thumb_url || attachment.url"/>
</a>