2020-04-27 09:53:04 +00:00
|
|
|
<template>
|
2021-06-22 17:47:35 +00:00
|
|
|
<div
|
|
|
|
class="StatusContent"
|
|
|
|
:class="{ '-compact': compact }"
|
|
|
|
>
|
2020-04-27 09:53:04 +00:00
|
|
|
<slot name="header" />
|
2021-06-07 16:51:04 +00:00
|
|
|
<StatusBody
|
|
|
|
:status="status"
|
2021-06-13 23:52:41 +00:00
|
|
|
:compact="compact"
|
2021-06-07 16:51:04 +00:00
|
|
|
:single-line="singleLine"
|
2021-06-14 07:30:08 +00:00
|
|
|
@parseReady="$emit('parseReady', $event)"
|
2021-06-07 16:51:04 +00:00
|
|
|
>
|
2021-08-15 15:26:37 +00:00
|
|
|
<div v-if="status.poll && status.poll.options && !compact">
|
2021-08-13 10:06:42 +00:00
|
|
|
<Poll
|
|
|
|
:base-poll="status.poll"
|
|
|
|
:emoji="status.emojis"
|
|
|
|
/>
|
2021-06-07 15:41:55 +00:00
|
|
|
</div>
|
|
|
|
|
2021-08-15 15:26:37 +00:00
|
|
|
<div v-else-if="status.poll && status.poll.options && compact">
|
|
|
|
<FAIcon
|
|
|
|
icon="poll-h"
|
|
|
|
size="2x"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
2021-06-17 13:29:46 +00:00
|
|
|
<gallery
|
|
|
|
v-if="status.attachments.length !== 0"
|
2021-06-22 17:47:35 +00:00
|
|
|
class="attachments media-body"
|
2021-06-17 13:29:46 +00:00
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
:attachments="status.attachments"
|
2021-06-22 17:47:35 +00:00
|
|
|
:limit="compact ? 1 : 0"
|
2021-06-17 13:29:46 +00:00
|
|
|
:size="attachmentSize"
|
|
|
|
@play="$emit('mediaplay', attachment.id)"
|
|
|
|
@pause="$emit('mediapause', attachment.id)"
|
|
|
|
/>
|
2020-04-27 09:53:04 +00:00
|
|
|
|
2021-06-07 15:41:55 +00:00
|
|
|
<div
|
2021-06-13 23:52:41 +00:00
|
|
|
v-if="status.card && !noHeading && !compact"
|
2021-06-07 15:41:55 +00:00
|
|
|
class="link-preview media-body"
|
|
|
|
>
|
|
|
|
<link-preview
|
|
|
|
:card="status.card"
|
|
|
|
:size="attachmentSize"
|
|
|
|
:nsfw="nsfwClickthrough"
|
|
|
|
/>
|
|
|
|
</div>
|
2021-06-07 16:50:26 +00:00
|
|
|
</StatusBody>
|
2020-04-27 09:53:04 +00:00
|
|
|
<slot name="footer" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./status_content.js" ></script>
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
$status-margin: 0.75em;
|
|
|
|
|
2020-07-27 22:27:11 +00:00
|
|
|
.StatusContent {
|
2020-04-27 09:53:04 +00:00
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
</style>
|