Enable audio and video uploads
This commit is contained in:
parent
06609b2d5d
commit
e3beb705eb
2 changed files with 15 additions and 2 deletions
|
@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Enabled audio and video uploads.
|
||||
|
||||
## [1.16.0] - 2023-03-08
|
||||
|
||||
### Added
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
>
|
||||
<img :src="require('@/assets/feather/x.svg')">
|
||||
</button>
|
||||
<img :src="attachment.url">
|
||||
<img v-if="attachment.type === 'image'" :src="attachment.url">
|
||||
<div v-else class="placeholder">{{ attachment.url }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="toolbar">
|
||||
|
@ -243,7 +244,6 @@ function getAcceptedMediaTypes(): string {
|
|||
return ""
|
||||
}
|
||||
return instance.configuration.media_attachments.supported_mime_types
|
||||
.filter(mediaType => mediaType.startsWith("image/"))
|
||||
.join(",")
|
||||
}
|
||||
|
||||
|
@ -413,6 +413,15 @@ $line-height: 1.5;
|
|||
> img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
background-color: $background-color;
|
||||
box-sizing: border-box;
|
||||
padding: $block-inner-padding;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
|
|
Loading…
Reference in a new issue