diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-07-06 15:06:13 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-07-06 15:06:13 +0300 |
| commit | d55c09df1844bf8fc99b7a3414cbd71ae2c8bad3 (patch) | |
| tree | e099c3b940a76113d005e21d81df121cfad957d1 /src/components/attachment | |
| parent | 87b5f828d769a5b2c34a4ad61f249c314a8bbb23 (diff) | |
fix edge case of videos and unknown files together
Diffstat (limited to 'src/components/attachment')
| -rw-r--r-- | src/components/attachment/attachment.js | 3 | ||||
| -rw-r--r-- | src/components/attachment/attachment.vue | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 23af693f..cb31020d 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -60,7 +60,8 @@ const Attachment = { return this.size === 'small' }, fullwidth () { - return this.type === 'html' || this.type === 'audio' + if (this.size === 'hide') return false + return this.type === 'html' || this.type === 'audio' || this.type === 'unknown' }, useModal () { const modalTypes = this.size === 'hide' ? ['image', 'video', 'audio'] diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index a18bf186..be7377e9 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -1,6 +1,7 @@ <template> <div v-if="usePlaceholder" + :class="{ 'fullwidth': fullwidth }" @click="openModal" > <a |
