aboutsummaryrefslogtreecommitdiff
path: root/src/components/media_modal/media_modal.vue
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-07 17:34:35 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-07 17:34:35 +0300
commitddde05771fdda8e07ff757c3469ab981ef2be295 (patch)
tree6270c5f68038b8e75b340f6d03c69d4e562847c5 /src/components/media_modal/media_modal.vue
parent77bb31b474f16aa2bbda66e2aa73cf0d20eb934e (diff)
parent7206fee4372eba5bb05db9eb90100aee95003962 (diff)
update with bookmarks, clean up some code
Diffstat (limited to 'src/components/media_modal/media_modal.vue')
-rw-r--r--src/components/media_modal/media_modal.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue
index 80d2a8b9..46931667 100644
--- a/src/components/media_modal/media_modal.vue
+++ b/src/components/media_modal/media_modal.vue
@@ -8,6 +8,8 @@
v-if="type === 'image'"
class="modal-image"
:src="currentMedia.url"
+ :alt="currentMedia.description"
+ :title="currentMedia.description"
@touchstart.stop="mediaTouchStart"
@touchmove.stop="mediaTouchMove"
@click="hide"
@@ -18,6 +20,14 @@
:attachment="currentMedia"
:controls="true"
/>
+ <audio
+ v-if="type === 'audio'"
+ class="modal-image"
+ :src="currentMedia.url"
+ :alt="currentMedia.description"
+ :title="currentMedia.description"
+ controls
+ />
<button
v-if="canNavigate"
:title="$t('media_modal.previous')"