fix edge case of videos and unknown files together

This commit is contained in:
Shpuld Shpuldson 2020-07-06 15:06:13 +03:00
parent 87b5f828d7
commit d55c09df18
2 changed files with 3 additions and 1 deletions

View file

@ -60,7 +60,8 @@ const Attachment = {
return this.size === 'small' return this.size === 'small'
}, },
fullwidth () { 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 () { useModal () {
const modalTypes = this.size === 'hide' ? ['image', 'video', 'audio'] const modalTypes = this.size === 'hide' ? ['image', 'video', 'audio']

View file

@ -1,6 +1,7 @@
<template> <template>
<div <div
v-if="usePlaceholder" v-if="usePlaceholder"
:class="{ 'fullwidth': fullwidth }"
@click="openModal" @click="openModal"
> >
<a <a