2020-04-27 09:53:04 +00:00
|
|
|
<template>
|
2021-06-22 17:47:35 +00:00
|
|
|
<div
|
|
|
|
class="StatusContent"
|
2022-08-18 03:14:38 +00:00
|
|
|
:class="{ '-compact': compact, 'mfm-hover': renderMfmOnHover, 'mfm-disabled': !renderMisskeyMarkdown }"
|
2021-06-22 17:47:35 +00:00
|
|
|
>
|
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-09-09 04:03:10 +00:00
|
|
|
:showing-tall="showingTall"
|
|
|
|
:expanding-subject="expandingSubject"
|
|
|
|
:showing-long-subject="showingLongSubject"
|
|
|
|
:toggle-showing-tall="toggleShowingTall"
|
|
|
|
:toggle-expanding-subject="toggleExpandingSubject"
|
|
|
|
:toggle-showing-long-subject="toggleShowingLongSubject"
|
2021-06-14 07:30:08 +00:00
|
|
|
@parseReady="$emit('parseReady', $event)"
|
2020-04-27 09:53: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"
|
2020-07-06 11:01:03 +00:00
|
|
|
/>
|
2021-06-07 15:41:55 +00:00
|
|
|
</div>
|
2020-04-27 09:53:04 +00:00
|
|
|
|
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)"
|
|
|
|
/>
|
2022-07-25 16:25:41 +00:00
|
|
|
<div
|
|
|
|
v-if="status.quote && !compact"
|
|
|
|
class="quote"
|
|
|
|
>
|
|
|
|
<QuoteCard
|
|
|
|
:status="status.quote"
|
|
|
|
/>
|
|
|
|
</div>
|
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">
|
2020-07-27 22:27:11 +00:00
|
|
|
.StatusContent {
|
2020-04-27 09:53:04 +00:00
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
|
2020-06-18 12:41:40 +00:00
|
|
|
img, video {
|
|
|
|
&.emoji {
|
2020-06-19 10:01:06 +00:00
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
2020-06-18 12:41:40 +00:00
|
|
|
}
|
|
|
|
}
|
2022-08-08 15:47:06 +00:00
|
|
|
|
|
|
|
&.mfm-hover:not(:hover) {
|
|
|
|
.mfm {
|
2022-08-18 03:14:38 +00:00
|
|
|
animation: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.mfm-disabled {
|
2022-11-02 22:33:54 +00:00
|
|
|
span {
|
|
|
|
font-size: 100% !important;
|
|
|
|
}
|
2022-08-18 03:14:38 +00:00
|
|
|
.mfm {
|
|
|
|
animation: none !important;
|
2022-08-08 15:47:06 +00:00
|
|
|
}
|
2022-11-02 22:33:54 +00:00
|
|
|
.emoji {
|
|
|
|
width: 32px !important;
|
|
|
|
height: 32px !important;
|
|
|
|
}
|
2022-08-08 15:47:06 +00:00
|
|
|
}
|
2020-04-27 09:53:04 +00:00
|
|
|
}
|
2022-08-07 07:57:21 +00:00
|
|
|
|
|
|
|
.quote-inline,
|
|
|
|
.quote + .link-preview {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-04-27 09:53:04 +00:00
|
|
|
</style>
|