media modal: add support for media descriptions

This commit is contained in:
William Pitcock 2019-02-18 06:09:55 +00:00
parent 9fefd74e9a
commit 68f403a3e5
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="modal-view" v-if="showing" @click.prevent="hide"> <div class="modal-view" v-if="showing" @click.prevent="hide">
<img class="modal-image" v-if="type === 'image'" :src="currentMedia.url"></img> <img class="modal-image" v-if="type === 'image'" :src="currentMedia.url" :alt="currentMedia.description" :title="currentMedia.description"></img>
<VideoAttachment <VideoAttachment
class="modal-image" class="modal-image"
v-if="type === 'video'" v-if="type === 'video'"