logo

pleroma-fe

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

user_popover.vue (851B)


  1. <template>
  2. <Popover
  3. trigger="click"
  4. popover-class="popover-default user-popover"
  5. :overlay-centers-selector="overlayCentersSelector || '.user-info .Avatar'"
  6. :overlay-centers="overlayCenters && userPopoverOverlay"
  7. :disabled="disabled"
  8. >
  9. <template #trigger>
  10. <slot />
  11. </template>
  12. <template #content="{close}">
  13. <UserCard
  14. class="user-popover"
  15. :user-id="userId"
  16. :hide-bio="true"
  17. :avatar-action="userPopoverAvatarAction == 'close' ? close : userPopoverAvatarAction"
  18. :on-close="close"
  19. />
  20. </template>
  21. </Popover>
  22. </template>
  23. <script src="./user_popover.js"></script>
  24. <style lang="scss">
  25. /* popover styles load on-demand, so we need to override */
  26. /* stylelint-disable block-no-empty */
  27. .user-popover.popover {
  28. }
  29. /* stylelint-enable block-no-empty */
  30. </style>