logo

pleroma-fe

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

navigation_pins.vue (1155B)


  1. <template>
  2. <span class="NavigationPins">
  3. <router-link
  4. v-for="item in pinnedList"
  5. :key="item.name"
  6. class="button-unstyled pinned-item"
  7. active-class="toggled"
  8. :to="getRouteTo(item)"
  9. :title="item.labelRaw || $t(item.label)"
  10. >
  11. <FAIcon
  12. v-if="item.icon"
  13. fixed-width
  14. :icon="item.icon"
  15. />
  16. <span
  17. v-if="item.iconLetter"
  18. class="iconLetter fa-scale-110 fa-old-padding"
  19. >{{ item.iconLetter }}</span>
  20. <div
  21. v-if="item.badgeGetter && getters[item.badgeGetter]"
  22. class="badge -dot -notification"
  23. />
  24. </router-link>
  25. </span>
  26. </template>
  27. <script src="./navigation_pins.js"></script>
  28. <style lang="scss">
  29. .NavigationPins {
  30. display: flex;
  31. flex-wrap: wrap;
  32. overflow: hidden;
  33. height: 100%;
  34. .pinned-item {
  35. position: relative;
  36. flex: 1 0 3em;
  37. min-width: 2em;
  38. text-align: center;
  39. overflow: visible;
  40. box-sizing: border-box;
  41. height: 100%;
  42. & .svg-inline--fa,
  43. & .iconLetter {
  44. margin: 0;
  45. }
  46. &.toggled {
  47. margin-bottom: -4px;
  48. border-bottom: 4px solid;
  49. }
  50. }
  51. }
  52. </style>