yandere_fe/src/components/status_content/status_content.vue

57 lines
1.2 KiB
Vue
Raw Normal View History

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