logo

pleroma-fe

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

who_to_follow_panel.vue (1316B)


  1. <template>
  2. <div class="who-to-follow-panel">
  3. <div class="panel panel-default base01-background">
  4. <div class="panel-heading timeline-heading base02-background base04">
  5. <div class="title">
  6. {{ $t('who_to_follow.who_to_follow') }}
  7. </div>
  8. </div>
  9. <div class="who-to-follow">
  10. <p
  11. v-for="user in usersToFollow"
  12. :key="user.id"
  13. class="who-to-follow-items"
  14. >
  15. <img :src="user.img">
  16. <router-link :to="userProfileLink(user.id, user.name)">
  17. {{ user.name }}
  18. </router-link><br>
  19. </p>
  20. <p class="who-to-follow-more">
  21. <router-link :to="{ name: 'who-to-follow' }">
  22. {{ $t('who_to_follow.more') }}
  23. </router-link>
  24. </p>
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <script src="./who_to_follow_panel.js"></script>
  30. <style lang="scss">
  31. .who-to-follow * {
  32. vertical-align: middle;
  33. }
  34. .who-to-follow img {
  35. width: 32px;
  36. height: 32px;
  37. }
  38. .who-to-follow {
  39. padding: 0 1em;
  40. margin: 0;
  41. }
  42. .who-to-follow-items {
  43. white-space: nowrap;
  44. overflow: hidden;
  45. text-overflow: ellipsis;
  46. padding: 0;
  47. margin: 1em 0;
  48. }
  49. .who-to-follow-more {
  50. padding: 0;
  51. margin: 1em 0;
  52. text-align: center;
  53. }
  54. </style>