This commit is contained in:
Henry Jameson 2021-06-22 20:47:35 +03:00
parent dd3fe61cf3
commit b67db47c88
6 changed files with 25 additions and 26 deletions

View file

@ -3,7 +3,6 @@ import Poll from '../poll/poll.vue'
import Gallery from '../gallery/gallery.vue'
import StatusBody from 'src/components/status_body/status_body.vue'
import LinkPreview from '../link-preview/link-preview.vue'
import fileType from 'src/services/file_type/file_type.service'
import { mapGetters, mapState } from 'vuex'
import { library } from '@fortawesome/fontawesome-svg-core'
import {

View file

@ -1,8 +1,8 @@
<template>
<div
class="StatusContent"
:class="{ '-compact': compact }"
>
<div
class="StatusContent"
:class="{ '-compact': compact }"
>
<slot name="header" />
<StatusBody
:status="status"
@ -16,11 +16,11 @@
</div>
<gallery
class="attachments media-body"
v-if="status.attachments.length !== 0"
class="attachments media-body"
:nsfw="nsfwClickthrough"
:attachments="status.attachments"
:limit="this.compact ? 1 : 0"
:limit="compact ? 1 : 0"
:size="attachmentSize"
@setMedia="onMedia"
@play="$emit('mediaplay', attachment.id)"