logo

pleroma-fe

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

post_status_modal.vue (770B)


  1. <template>
  2. <Modal
  3. v-if="isLoggedIn && !resettingForm"
  4. :is-open="modalActivated"
  5. class="post-form-modal-view"
  6. @backdropClicked="closeModal"
  7. >
  8. <div class="post-form-modal-panel panel">
  9. <div class="panel-heading">
  10. {{ $t('post_status.new_status') }}
  11. </div>
  12. <PostStatusForm
  13. class="panel-body"
  14. v-bind="params"
  15. @posted="resetAndClose"
  16. />
  17. </div>
  18. </Modal>
  19. </template>
  20. <script src="./post_status_modal.js"></script>
  21. <style lang="scss">
  22. .modal-view.post-form-modal-view {
  23. align-items: flex-start;
  24. }
  25. .post-form-modal-panel {
  26. flex-shrink: 0;
  27. margin-top: 25%;
  28. margin-bottom: 2em;
  29. width: 100%;
  30. max-width: 700px;
  31. @media (orientation: landscape) {
  32. margin-top: 8%;
  33. }
  34. }
  35. </style>