logo

pleroma-fe

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

domain_mute_card.vue (1057B)


  1. <template>
  2. <div class="domain-mute-card">
  3. <div class="domain-mute-card-domain">
  4. {{ domain }}
  5. </div>
  6. <ProgressButton
  7. v-if="muted"
  8. :click="unmuteDomain"
  9. class="btn button-default"
  10. >
  11. {{ $t('domain_mute_card.unmute') }}
  12. <template #progress>
  13. {{ $t('domain_mute_card.unmute_progress') }}
  14. </template>
  15. </ProgressButton>
  16. <ProgressButton
  17. v-else
  18. :click="muteDomain"
  19. class="btn button-default"
  20. >
  21. {{ $t('domain_mute_card.mute') }}
  22. <template #progress>
  23. {{ $t('domain_mute_card.mute_progress') }}
  24. </template>
  25. </ProgressButton>
  26. </div>
  27. </template>
  28. <script src="./domain_mute_card.js"></script>
  29. <style lang="scss">
  30. .domain-mute-card {
  31. flex: 1 0;
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. padding: 0.6em 1em 0.6em 0;
  36. &-domain {
  37. margin-right: 1em;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. }
  41. button {
  42. width: 10em;
  43. }
  44. .autosuggest-results & {
  45. padding-left: 1em;
  46. }
  47. }
  48. </style>