logo

pleroma-fe

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

sticker_picker.vue (1282B)


  1. <template>
  2. <div
  3. class="sticker-picker"
  4. >
  5. <tab-switcher
  6. class="tab-switcher"
  7. :render-only-focused="true"
  8. scrollable-tabs
  9. >
  10. <div
  11. v-for="stickerpack in pack"
  12. :key="stickerpack.path"
  13. :image-tooltip="stickerpack.meta.title"
  14. :image="stickerpack.path + stickerpack.meta.tabIcon"
  15. class="sticker-picker-content"
  16. >
  17. <div
  18. v-for="sticker in stickerpack.meta.stickers"
  19. :key="sticker"
  20. class="sticker"
  21. @click.stop.prevent="pick(stickerpack.path + sticker, stickerpack.meta.title)"
  22. >
  23. <img
  24. :src="stickerpack.path + sticker"
  25. >
  26. </div>
  27. </div>
  28. </tab-switcher>
  29. </div>
  30. </template>
  31. <script src="./sticker_picker.js"></script>
  32. <style lang="scss">
  33. .sticker-picker {
  34. width: 100%;
  35. .contents {
  36. min-height: 250px;
  37. .sticker-picker-content {
  38. display: flex;
  39. flex-wrap: wrap;
  40. padding: 0 4px;
  41. .sticker {
  42. display: flex;
  43. flex: 1 1 auto;
  44. margin: 4px;
  45. width: 56px;
  46. height: 56px;
  47. img {
  48. height: 100%;
  49. &:hover {
  50. filter: drop-shadow(0 0 5px var(--accent));
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. </style>