logo

pleroma-fe

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

bookmark_folder_card.vue (2127B)


  1. <template>
  2. <div
  3. v-if="allBookmarks"
  4. class="bookmark-folder-card"
  5. >
  6. <router-link
  7. :to="{ name: 'bookmarks' }"
  8. class="bookmark-folder-name"
  9. >
  10. <span class="icon">
  11. <FAIcon
  12. fixed-width
  13. class="fa-scale-110 menu-icon"
  14. icon="bookmark"
  15. />
  16. </span>{{ $t('nav.all_bookmarks') }}
  17. </router-link>
  18. </div>
  19. <div
  20. v-else
  21. class="bookmark-folder-card"
  22. >
  23. <router-link
  24. :to="{ name: 'bookmark-folder', params: { id: folder.id } }"
  25. class="bookmark-folder-name"
  26. >
  27. <img
  28. v-if="folder.emoji_url"
  29. class="iconEmoji iconEmoji-image"
  30. :src="folder.emoji_url"
  31. :alt="folder.emoji"
  32. :title="folder.emoji"
  33. >
  34. <span
  35. v-else-if="folder.emoji"
  36. class="iconEmoji"
  37. >
  38. <span>
  39. {{ folder.emoji }}
  40. </span>
  41. </span>
  42. <span
  43. v-else-if="firstLetter"
  44. class="icon iconLetter fa-scale-110"
  45. >{{ firstLetter }}</span>{{ folder.name }}
  46. </router-link>
  47. <router-link
  48. :to="{ name: 'bookmark-folder-edit', params: { id: folder.id } }"
  49. class="button-folder-edit"
  50. >
  51. <FAIcon
  52. class="fa-scale-110 fa-old-padding"
  53. icon="ellipsis-h"
  54. />
  55. </router-link>
  56. </div>
  57. </template>
  58. <script src="./bookmark_folder_card.js"></script>
  59. <style lang="scss">
  60. .bookmark-folder-card {
  61. display: flex;
  62. align-items: center;
  63. }
  64. a.bookmark-folder-name {
  65. display: flex;
  66. align-items: center;
  67. flex-grow: 1;
  68. .icon,
  69. .iconLetter,
  70. .iconEmoji {
  71. display: inline-block;
  72. height: 2.5rem;
  73. width: 2.5rem;
  74. margin-right: 0.5rem;
  75. }
  76. .icon,
  77. .iconLetter {
  78. font-size: 1.5rem;
  79. line-height: 2.5rem;
  80. text-align: center;
  81. }
  82. .iconEmoji {
  83. text-align: center;
  84. object-fit: contain;
  85. vertical-align: middle;
  86. > span {
  87. font-size: 1.5rem;
  88. line-height: 2.5rem;
  89. }
  90. }
  91. img.iconEmoji {
  92. padding: 0.25em;
  93. box-sizing: border-box;
  94. }
  95. }
  96. .bookmark-folder-name,
  97. .button-folder-edit {
  98. margin: 0;
  99. padding: 1em;
  100. color: var(--link);
  101. }
  102. </style>