aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/attachment/attachment.vue')
-rw-r--r--src/components/attachment/attachment.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 1cb53c32..1e49cbeb 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -11,6 +11,8 @@
<video v-if="type === 'video' && !nsfw" :src="attachment.url" controls></video>
+ <audio v-if="type === 'audio'" :src="attachment.url" controls></audio>
+
<span v-if="type === 'unknown'">Don't know how to display this...</span>
<div v-if="type === 'html' && attachment.oembed" class="oembed">
@@ -45,6 +47,10 @@
width: 100%;
}
+ audio {
+ width: 100%;
+ }
+
img.media-upload {
width: 100%;
height: 100%;
@@ -94,7 +100,6 @@
img {
width: 100%;
- flex: 1;
border: 1px solid;
border-radius: 0.5em;
width: 100%;