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'
},
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']

View file

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