logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

status_content.vue (1703B)


  1. <template>
  2. <div
  3. class="StatusContent"
  4. :class="{ '-compact': compact }"
  5. >
  6. <slot name="header" />
  7. <StatusBody
  8. :status="status"
  9. :compact="compact"
  10. :single-line="singleLine"
  11. :showing-tall="showingTall"
  12. :expanding-subject="expandingSubject"
  13. :showing-long-subject="showingLongSubject"
  14. :toggle-showing-tall="toggleShowingTall"
  15. :toggle-expanding-subject="toggleExpandingSubject"
  16. :toggle-showing-long-subject="toggleShowingLongSubject"
  17. @parseReady="$emit('parseReady', $event)"
  18. >
  19. <div v-if="status.poll && status.poll.options && !compact">
  20. <Poll
  21. :base-poll="status.poll"
  22. :emoji="status.emojis"
  23. />
  24. </div>
  25. <div v-else-if="status.poll && status.poll.options && compact">
  26. <FAIcon
  27. icon="poll-h"
  28. size="2x"
  29. />
  30. </div>
  31. <gallery
  32. v-if="status.attachments.length !== 0"
  33. class="attachments media-body"
  34. :compact="compact"
  35. :nsfw="nsfwClickthrough"
  36. :attachments="status.attachments"
  37. :limit="compact ? 1 : 0"
  38. :size="attachmentSize"
  39. @play="$emit('mediaplay', attachment.id)"
  40. @pause="$emit('mediapause', attachment.id)"
  41. />
  42. <div
  43. v-if="statusCard && !noHeading && !compact"
  44. class="link-preview media-body"
  45. >
  46. <link-preview
  47. :card="status.card"
  48. :size="attachmentSize"
  49. :nsfw="nsfwClickthrough"
  50. />
  51. </div>
  52. </StatusBody>
  53. <slot name="footer" />
  54. </div>
  55. </template>
  56. <script src="./status_content.js"></script>
  57. <style lang="scss">
  58. .StatusContent {
  59. flex: 1;
  60. min-width: 0;
  61. }
  62. </style>