logo

pleroma-fe

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

avatar_list.vue (698B)


  1. <template>
  2. <div class="avatars">
  3. <router-link
  4. v-for="user in slicedUsers"
  5. :key="user.id"
  6. :to="userProfileLink(user)"
  7. class="avatars-item"
  8. >
  9. <UserAvatar
  10. :user="user"
  11. class="avatar-small"
  12. />
  13. </router-link>
  14. </div>
  15. </template>
  16. <script src="./avatar_list.js"></script>
  17. <style lang="scss">
  18. .avatars {
  19. display: flex;
  20. margin: 0;
  21. padding: 0;
  22. // For hiding overflowing elements
  23. flex-wrap: wrap;
  24. height: 24px;
  25. .avatars-item {
  26. margin: 0 0 5px 5px;
  27. &:first-child {
  28. padding-left: 5px;
  29. }
  30. .avatar-small {
  31. border-radius: var(--roundness);
  32. height: 24px;
  33. width: 24px;
  34. }
  35. }
  36. }
  37. </style>