diff options
| author | dtluna <dtluna@openmailbox.org> | 2016-11-25 21:02:53 -0500 |
|---|---|---|
| committer | dtluna <dtluna@openmailbox.org> | 2016-11-25 21:02:53 -0500 |
| commit | cb940a8742307ee069e3da567058d098f59990b6 (patch) | |
| tree | 8a4c3e6f8c52736dd3180f6017280fcbc2376ebb /src/components/attachment/attachment.vue | |
| parent | 01edb7dbe498b434e258451af94d1bca287d2e40 (diff) | |
| parent | 1be1d7563c94fa961c1cc0cef03e7e4e69df178a (diff) | |
Merge branch 'develop' into 'feature/attachment-form-improvements'
# Conflicts:
# src/components/attachment/attachment.js
Diffstat (limited to 'src/components/attachment/attachment.vue')
| -rw-r--r-- | src/components/attachment/attachment.vue | 7 |
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%; |
