logo

pleroma-fe

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

status_popover.vue (1249B)


  1. <template>
  2. <Popover
  3. ref="popover"
  4. trigger="hover"
  5. :stay-on-click="true"
  6. popover-class="popover-default status-popover"
  7. :bound-to="{ x: 'container' }"
  8. @show="enter"
  9. >
  10. <template #trigger>
  11. <slot />
  12. </template>
  13. <template #content>
  14. <Status
  15. v-if="status"
  16. :is-preview="true"
  17. :statusoid="status"
  18. :compact="true"
  19. />
  20. <div
  21. v-else-if="error"
  22. class="status-preview-no-content faint"
  23. >
  24. {{ $t('status.status_unavailable') }}
  25. </div>
  26. <div
  27. v-else
  28. class="status-preview-no-content"
  29. >
  30. <FAIcon
  31. icon="circle-notch"
  32. spin
  33. size="2x"
  34. />
  35. </div>
  36. </template>
  37. </Popover>
  38. </template>
  39. <script src="./status_popover.js"></script>
  40. <style lang="scss">
  41. /* popover styles load on-demand, so we need to override */
  42. .status-popover.popover {
  43. font-size: 1rem;
  44. min-width: 15em;
  45. max-width: 95%;
  46. border-color: var(--border);
  47. border-style: solid;
  48. border-width: 1px;
  49. /* TODO cleanup this */
  50. .Status.Status {
  51. border: none;
  52. }
  53. .status-preview-no-content {
  54. padding: 1em;
  55. text-align: center;
  56. i {
  57. font-size: 2em;
  58. }
  59. }
  60. }
  61. </style>