diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 99958589cc..47ca03de07 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -23,6 +23,10 @@ const Attachment = { type = 'video' }; + if (this.attachment.mimetype.match(/ogg|audio/)) { + type = 'audio' + } + return type } }, diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 0e2a228a94..4e8c140766 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -8,6 +8,8 @@ + + Don't know how to display this...
@@ -42,6 +44,10 @@ width: 100%; } + audio { + width: 100%; + } + img.media-upload { width: 100%; height: 100%;