logo

pleroma-fe

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

chat_title.vue (1075B)


  1. <template>
  2. <div
  3. class="chat-title"
  4. :title="title"
  5. >
  6. <UserPopover
  7. v-if="withAvatar && user"
  8. class="avatar-container"
  9. :user-id="user.id"
  10. >
  11. <UserAvatar
  12. class="titlebar-avatar"
  13. :user="user"
  14. />
  15. </UserPopover>
  16. <RichContent
  17. v-if="user"
  18. class="username"
  19. :title="'@'+(user && user.screen_name_ui)"
  20. :html="htmlTitle"
  21. :emoji="user.emoji || []"
  22. />
  23. </div>
  24. </template>
  25. <script src="./chat_title.js"></script>
  26. <style lang="scss">
  27. .chat-title {
  28. display: flex;
  29. overflow: hidden;
  30. text-overflow: ellipsis;
  31. white-space: nowrap;
  32. --emoji-size: 14px;
  33. .username {
  34. max-width: 100%;
  35. text-overflow: ellipsis;
  36. white-space: nowrap;
  37. display: inline;
  38. word-wrap: break-word;
  39. overflow: hidden;
  40. }
  41. .avatar-container {
  42. align-self: center;
  43. line-height: 1;
  44. }
  45. .titlebar-avatar {
  46. margin-right: 0.5em;
  47. height: 1.5em;
  48. width: 1.5em;
  49. border-radius: var(--roundness);
  50. &.animated::before {
  51. display: none;
  52. }
  53. }
  54. }
  55. </style>